Check a swap's outcome
get_swap_statusCheck where a quote or swap stands, by request_id (the quote_id) OR transaction_signature — exactly one. Moves nothing and is safe to call again. status is one of: not_executed (quoted but never executed — nothing was traded; it can still be executed until quote_expires_at), expired (never executed and now too old — nothing was traded; get a fresh quote if the user still wants it), pending (submitted, waiting for confirmation), confirmed, failed. executed_at is when it was submitted (null = never). Once booked, filled_input_amount_ui / filled_output_amount_ui are what was actually spent and received and effective_slippage_bps how far the fill landed from the quote. A failed swap carries failure_details (transaction_signature, stage, error_class, chain_error, provider). error_class is always set for an on-chain revert: slippage_exceeded (requote), insufficient_funds / insufficient_lamports (the wallet could not cover the trade or SOL for fees/rent), program_error (a program refused it; its code is in chain_error.code), unknown_revert; dropped_tx_blockhash_expired means it never landed. request_id also accepts the Reference ID a failure message printed. A confirmed sell carries resting_order_ids: your orders still live on the token sold (empty once a full sell's exits are all cancelled).
🔴 CALL THIS WHENEVER execute_swap OR quick_buy RETURNED A next_step. A swap can return before its fill is confirmed. Until this tool says the swap succeeded, you do NOT know that it did: never tell the user their tokens have arrived based on the execute response alone, and never re-execute the quote to find out (that would trade twice). If it is still pending, say so and check again shortly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | No | The `quote_id` of the swap you executed. Give this OR `transaction_signature`. | |
| transaction_signature | No | The `transaction_signature` the swap returned. Give this OR `request_id`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||