Skip to main content
POST
Python (SDK)

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Path Parameters

order_hash
string
required

Body

application/json
owner
string
required

Wallet that owns the Tokenized Assets Account. The account address derived from this owner must match the order's on-chain maker; the API rejects otherwise (only the order's maker can cancel it).

Response

Successful Response

cancel_safe_tx_eip712
BatchedSafeOperationsResponse · object
required

EIP-712 payload that authorizes the on-chain cancellation. Sign with wallet.signTypedData(...) from the Tokenized Assets Account's owner, then broadcast via POST /v2/gas_sponsorship/prepare or have the owner broadcast the resulting transaction directly.

Example: