Track a swap (can wait for you)
get_swap_statusCheck a swap by deposit address. Set wait_seconds (up to 25) and the server waits for the status to change before answering, so you need fewer calls. Statuses: PENDING_DEPOSIT, PROCESSING, SUCCESS, INCOMPLETE_DEPOSIT, REFUNDED, FAILED. final=true means done.
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": {
"deposit_address": "<deposit_address>"
},
"name": "get_swap_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | No | Pass 'fast' if the swap was created with speed='fast' (the reply says route='fast'). | |
| deposit_memo | No | deposit_memo, if one was returned. | |
| wait_seconds | No | 0-25. Server-side wait for a status change (long-poll). | |
| deposit_address | Yes | deposit_address returned by create_swap or pay_exact. |