Swap status
get_swap_statusStatus and fill of a swap by quote_id or signature. Safe to repeat. Moves nothing. Pass quote_id (from the swap result, or a failure message's Reference ID) OR transaction_signature. status: not_executed (quoted, never executed, nothing traded; executable until quote_expires_at), expired (never executed, too old), pending, confirmed, failed. Once booked, filled_input_amount_ui / filled_output_amount_ui are what was spent and received, effective_slippage_bps the gap to the quote. failed carries failure_details (stage, error_class: slippage_exceeded, insufficient_funds / insufficient_lamports, program_error, unknown_revert; dropped_tx_blockhash_expired = never landed, nothing moved: re-quote and try once more). A confirmed sell lists resting_order_ids. š“ Call this whenever execute_swap or quick_buy returned a next_step: until it says confirmed, never tell the user tokens arrived, and never re-execute to find out (that trades twice).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_swap_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | No | The `quote_id` the swap returned. Give this OR `transaction_signature`. | |
| request_id | No | Older name for `quote_id`. | |
| transaction_signature | No | The `transaction_signature` the swap returned. Give this OR `quote_id`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||