{"openapi":"3.1.0","info":{"title":"USDC payment preflight (Base)","version":"0.1.0","description":"Before you pay: would this USDC transfer on Base go through right now? Checks USDC balance, ETH for gas, token paused, sender/recipient blacklisted, optional EIP-3009 nonce, and simulates the transfer. Read-only public RPC. Read-only check of public chain state at one moment; not a guarantee. Not financial advice.","termsOfService":"https://ordstirr.com/agents/terms"},"servers":[{"url":"https://preflight.ordstirr.com"}],"paths":{"/v1/preflight":{"post":{"summary":"Would this USDC transfer on Base go through right now? Fixed reason codes split into retryable and final, with checked_at and latency_ms. Informational only. Price: $0.01 USDC per call.","x-payment-info":{"protocol":"x402","price":{"amount":"0.01","currency":"USD","asset":"USDC","atomic":"10000"},"network":"eip155:8453","pay_to":"0x31CA287B2eCe9849db915AFb4cE522f02dB1A1F6"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"type":"string","description":"Sender 0x address."},"to":{"type":"string","description":"Recipient 0x address."},"amount":{"type":"string","description":"USDC in dollars, e.g. \"0.01\" (max 6 decimals). Give this or amount_atomic."},"amount_atomic":{"type":"string","description":"USDC base units (6 decimals); 10000 = $0.01."},"network":{"type":"string","enum":["eip155:8453","base","eip155:84532","base-sepolia"],"default":"eip155:8453"},"mode":{"type":"string","enum":["direct","x402"],"default":"direct","description":"direct = sender pays gas (ETH checked). x402 = gasless EIP-3009 authorization; facilitator pays gas."},"authorization_nonce":{"type":"string","description":"Optional EIP-3009 nonce (bytes32) to check it is unused."},"max_gas_price_gwei":{"type":"number","description":"Optional gas price cap; above it => gas_price_high (retryable)."}}},"example":{"from":"0x0d9001fb535ccc9bfc2FC6Ae17E4C3C44580ec1f","to":"0x31CA287B2eCe9849db915AFb4cE522f02dB1A1F6","amount":"0.01","network":"eip155:8453","mode":"direct"}}}},"responses":{"200":{"description":"Paid answer with a signed receipt.","content":{"application/json":{"example":{"would_succeed":false,"reason":"insufficient_usdc","retryable":false,"reasons":[{"code":"insufficient_usdc","retryable":false,"detail":"Balance 0.004 USDC is below the 0.01 USDC transfer (short 0.006)."}],"warnings":[],"network":"eip155:8453","mode":"direct","token":{"symbol":"USDC","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6,"paused":false},"amount":{"atomic":"10000","usdc":"0.01"},"from":{"address":"0x0d90…","usdc":"0.004","eth":"0.0002","blacklisted":false},"to":{"address":"0x31CA…","blacklisted":false},"gas":{"checked":true,"simulated":false,"gas_limit":"65000","required_eth":"0.0000005","has_enough":true},"block":{"number":39000000,"timestamp":"2026-11-25T17:00:00.000Z","age_seconds":2},"reason_codes":{"retryable":["token_paused","gas_price_high"],"final":["insufficient_usdc","insufficient_gas","sender_blacklisted","recipient_blacklisted","authorization_nonce_used","simulation_reverted"]},"checked_at":"2026-11-25T17:00:02.000Z","latency_ms":140,"terms_url":"https://ordstirr.com/agents/terms","notice":"Informational only: a read-only check of public chain state at the time shown, not a guarantee the transfer will succeed later."}}}},"400":{"description":"Bad input. Not charged."},"402":{"description":"Payment required. The PAYMENT-REQUIRED header and resource.description state the price."},"404":{"description":"Lookup found nothing. Not charged."},"429":{"description":"Rate limited. Not charged."},"503":{"description":"Our side failed (or payments not configured). Not charged."}}}}}}