Would it be legal to unlock an iPhone I purchased on Ebay locked?

Would it be legal to unlock an iPhone I purchased on Ebay locked?

No

Federal law days all vendors must allow you to request and have granted, unlocking of your phone at the termination of contract. If this phone you bought is sketchy in any way, you will soon find out.