Skip to main content
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
sender
string
required

Sender's bech32 address

offerOutRef
object
required

Offer output reference

Response

Offer cancelled successfully

Unsigned transaction

cbor_hex
string
required

CBOR hexadecimal representation of the transaction

tx_hash
string
required

Transaction hash

I