build_cancel_market_transaction
Cancel a boolean prediction market with a transaction that enables refunds for all bettors. Requires the creator or admin's authority wallet to proceed.
Instructions
[REQUIRES BAOZI_LIVE=1] Build transaction to cancel a boolean market. All bettors can claim refunds after cancellation. Only creator or admin can cancel.
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": {
"market": "<market>",
"reason": "<reason>",
"authority_wallet": "<authority_wallet>"
},
"name": "build_cancel_market_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | Market public key | |
| reason | Yes | Reason for cancellation | |
| authority_wallet | Yes | Authority wallet (creator or admin) |