Cancel offer
Builds a transaction closing buyer's open offer on asset and refunding the escrowed funds to them.
buyer must be the wallet that created the offer, and asset must match the asset recorded on the offer — a mismatch is rejected rather than silently closing a different offer.
This route returns 404 when no offer exists. Note the asymmetry: /v2/tx/offers/accept returns 400 in the same situation.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Closes an open offer and refunds the escrowed funds to the buyer.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/tx/offers/cancel" \ -H "Content-Type: application/json" \ -d '{ "buyer": "string", "asset": "string" }'{ "result": { "tx": "string" }}Make offer POST
Builds an offer (bid) from buyer on asset at price, denominated in currencyMint — SOL when omitted. Funds are escrowed on-chain when the transaction confirms.
Accept offer POST
Builds a transaction in which seller accepts buyer's outstanding offer on asset, transferring the asset and releasing the escrowed funds.