Accepting an offer is the process of selling the NFT and using the proceeds to pay off the loan. The remainder is left with the user.

Pay off your loan and sell the NFT in one transaction with this feature. It is available when the highest bid on OpenSea exceeds the amount owed. To add this feature to your application, follow these few steps:

  1. Get offers
  2. Fulfill offer

1. Get offers

Get offers on the NFT with the collection address and tokenId

const offers = await cyan.getTopBids("0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", "3758");

2. Accept offer

After the top offers are returned from the first step, the user should pass the selected offer to fulfill the offer.

const plans = await cyan.fulfillOffer(plan, offer);


What you receive is the net amount after deducting marketplace fees and collection royalties.