Check a swap order
check_swap_statusFollow an existing order by id: where it stands, what the deposit and payout amounts turned out to be, the transaction hashes, and a plain-language explanation of what the current stage means and what happens next. Use it after create_swap, and again whenever the user asks where their swap is.
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": {
"id": "<id>"
},
"name": "check_swap_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order id returned by create_swap. | |
| sub_id | No | Sub order id, for an order the provider split in two. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| to | Yes | ||
| from | Yes | ||
| status | Yes | ||
| provider | Yes | ||
| amount_to | Yes | ||
| track_url | Yes | ||
| created_at | Yes | ||
| payin_hash | Yes | ||
| updated_at | Yes | ||
| amount_from | Yes | ||
| payout_hash | Yes | ||
| refund_hash | Yes | ||
| refund_memo | Yes | ||
| valid_until | Yes | ||
| payin_address | Yes | ||
| refund_amount | Yes | ||
| payin_extra_id | Yes | ||
| payout_address | Yes | ||
| refund_address | Yes | ||
| payout_extra_id | Yes | ||
| stage_explanation | Yes | ||
| expected_amount_to | Yes | ||
| deposit_received_at | Yes | ||
| expected_amount_from | Yes |