market_cancel
Cancel an unfunded contract before any payment moves and record the reason; use refund, release, or dispute once money has been paid.
Instructions
Buyer or seller: cancel a contract nobody has funded or paid (an abandoned order, a deal that fell through), with the reason recorded. It counts neither as finished nor as a dispute. Once money has moved, use release, refund or dispute instead.
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": {
"contract": "<contract>",
"reason": "<reason>"
},
"name": "market_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Practice market only: act as this party id. | |
| demo | No | Use the practice market on this computer (nothing published, no real money). | |
| reason | Yes | Why it is cancelled (recorded on the log). | |
| network | No | Which market (default testnet). Validate on testnet, then use mainnet (real XRP). | |
| contract | Yes | Contract id. |