mallow docs

Accept offer

POST
/v2/tx/offers/accept

Builds a transaction in which seller accepts buyer's offer on asset. The asset goes to the buyer and the escrowed funds to the seller, less fees and royalties.

seller must own the asset. If they also have it listed at a fixed price, the listing is cancelled in the same transaction, except for compressed NFTs, whose listing must be cancelled first.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Accepts an offer, sending the asset to the buyer and the escrowed funds to the seller.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/tx/offers/accept" \  -H "Content-Type: application/json" \  -d '{    "seller": "string",    "buyer": "string",    "asset": "string"  }'
{  "result": {    "tx": "string",    "setupTx": "string"  }}