Transaction Builder API
Cancel order
Build a transaction that cancels an open order
POST
Builds a transaction that cancels an open order and returns the escrowed assets to the caller.
Pass the order reference as
Possible errors:
txHash plus index, then provide changeAddress and utxos. For utxos, use "splash-wallet" to let the builder resolve wallet inputs automatically, or pass string[] to provide serialized UTxOs yourself. See UTxO input modes for the difference.
Auth: Public
Request body
Transaction hash of the order to cancel.
Output index of the order within its transaction, encoded as a string.
Bech32 change address.
Response
Builder transaction ID.
Hex-encoded transaction CBOR. It is signed when
collaterals are omitted.Whether the returned transaction is still partial. The current implementation returns
true.Error response
Machine-readable error code.
Human-readable error message.
400 INVALID_PARAMS— one or more required fields are missing or have the wrong type.500 SERVER_ERROR— UTxO lookup, config loading, transaction building, or optional signing failed.