compose_cancel
Compose a transaction to cancel an open DEX order on Counterparty. Provide the order creator's Bitcoin address and the order's transaction hash to generate the cancellation transaction.
Instructions
Compose a transaction to cancel an open DEX order
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"offer_hash": "<offer_hash>"
},
"name": "compose_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Source Bitcoin address (must be order creator) | |
| inputs_set | No | Comma-separated UTXOs to use as inputs (txid:vout) | |
| offer_hash | Yes | Transaction hash of the order to cancel | |
| sat_per_vbyte | No | Fee rate in satoshis per virtual byte (e.g. 1, 5.5, 0.15). Check get_fee_estimate for current market rates. |