Skip to main content
POST
Returns unsigned calldata for cancelOrders, which permanently invalidates one or more signed orders on the custody contract. Once mined, no venue can settle those signatures, whatever it still holds. This is the trader’s own escape hatch, and it is deliberately not blockable: a trader does not need the venue’s cooperation to retire an authorization they signed. It is the counterpart to Cancel Order, which only removes the order from this venue’s book. The transaction is signed by the trader, not by the venue operator. The contract records the cancellation against the calling address, so it only ever affects that trader’s own orders.

After it is mined

There is no confirm endpoint. The venue reads liveness from the chain rather than from a hash you report: the next time an incoming order could match one of these, it is found retired, cancelled with the reason recorded, and its reservation released. To free the reservation immediately, call Cancel Order as well.

Body Parameters

string
required
The trader’s wallet. Only orders belonging to this wallet are included.
array
required
Order IDs to invalidate, 1 to 50 entries. IDs that do not belong to this wallet are silently dropped; if none match, the request returns ORDER_NOT_FOUND.

Response Fields

object
All the orders in one call must sit on the same custody contract, since the transaction targets a single contract. In practice that is automatic: there is one custody contract per network.

Error Codes