mallow docs

Cancel offer

POST
/v2/tx/offers/cancel

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
x-api-key<token>

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