usdc_wait_for_trade
Wait for a pending USDC trade by polling every 3s, returning each step, outcome and tx hash; needs_retry can be retried, pending means never resubmit.
Instructions
Follow a pending USDC trade (requestId from usdc_buy, usdc_buy_with_native or usdc_sell) to its result, like gdex.pro's live progress note: polls every 3s and returns each step as it happened (bridge legs, gas top-up, approve, swap), the outcome and the tx hash. outcome "needs_retry" means a sell broadcast was dropped and can be retried in place with usdc_retry_sell; "pending" after the timeout means still settling: never resubmit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | GDEX API key for AES encryption | |
| requestId | Yes | requestId returned by the trade | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| timeoutSec | No | Max seconds to wait, default 120 | |
| walletAddress | No | Control wallet address | |
| sessionPrivateKey | No | Session private key from sign-in |