POST
/
contracts
/
directSwap
/
cancelOffer
Cancel an offer
curl --request POST \
  --url https://mainnet.gomaestro-api.org/v1/contracts/directSwap/cancelOffer \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "sender": "<string>",
  "offerOutRef": {
    "tx_hash": "<string>",
    "output_index": 123
  }
}'
{
  "cbor_hex": "<string>",
  "tx_hash": "<string>"
}

Authorizations

api-key
string
header
required

Project API Key

Body

application/json

Response

200
application/json

Offer cancelled successfully

Unsigned transaction