mallow docs

Accept offer

POST
/v2/tx/offers/accept

Builds a transaction in which seller accepts buyer's outstanding offer on asset, transferring the asset and releasing the escrowed funds.

seller must currently own the asset and an offer from buyer must exist; both failures return 400. If the asset is simultaneously listed for a fixed price by the same seller, a delist instruction is prepended automatically, because the on-chain program requires the listing to be closed first.

Set enablePrimarySplit to split the primary-sale proceeds among the creators recorded on-chain. When it is omitted the proceeds go to the seller, with royalties still paid to those creators.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Accepts an outstanding offer, transferring the asset and releasing the escrowed funds. If the asset is also listed at a fixed price by the same seller, a delist instruction is prepended automatically.

Response Body

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"  }}