x402 API Endpoints
Complete reference for the approved /api/x402 contract. Paid routes cost a flat $0.05 per call, settled on Base via an x402 payment (pay-and-retry on 402 Payment Required). Wallet-bound reads are free but require a valid SIGN-IN-WITH-X (SIWX) proof and ownership of the resource.
Bootstrap & catalog
GET
/api/x402Readiness documentFree. Safe bootstrap route for x402 clients.
GET
/api/x402/currenciesSupported currency catalogPaid $0.05.
GET
/api/x402/tokens/popularPopular token shortlistPaid $0.05.
GET
/api/x402/tokens/searchSearch tokens by symbol or namePaid $0.05. Query param q.
GET
/api/x402/tokens/by-addressResolve a token by chain + contract addressPaid $0.05. Params chain, address.
GET
/api/x402/tokens/logoToken logo asset lookupPaid $0.05.
Routing & quotes
GET
/api/x402/routesList paid route inventoryPaid $0.05. Private/offchain plus Onchain DEX & Bridge routes; keep walletAddress as the source signer and pass recipientAddress for cross-namespace recipients (e.g. Mayan EVM→Solana).
POST
/api/x402/routes/resolveResolve a route quotePaid $0.05 + SIWX.
POST
/api/x402/quotesCreate a paid quote (legacy)Paid $0.05. Not used for Wormhole bridge route cards.
POST
/api/x402/onchain/routes/resolveResolve an onchain routePaid $0.05 + SIWX (wallet must match). Use the routeQuoteId from /routes; returns executionAccessToken.
POST
/api/x402/onchain/executionsReport onchain executionPaid $0.05 + SIWX. Also send X-Onchain-Execution-Access-Token.
GET
/api/x402/onchain/executions/{executionPlanId}Read execution statusFree (SIWX). Requires the execution access token.
Orders
POST
/api/x402/ordersCreate a paid orderPaid $0.05 + SIWX. Binds the order to your wallet; requires Idempotency-Key.
GET
/api/x402/orders/{orderId}Read normalized orderFree (SIWX). Wallet must own the order.
POST
/api/x402/orders/{orderId}/emergencyTrigger emergency actionPaid $0.05 + SIWX + ownership.
POST
/api/x402/orders/{orderId}/refundRequest a refundPaid $0.05 + SIWX + ownership.
POST
/api/x402/orders/{orderId}/notifications/emailAttach email notificationPaid $0.05 + SIWX + ownership.
GET
/api/x402/orders/{orderId}/qrFetch deposit QR imagesFree (SIWX) + ownership.
Market intelligence
POST
/api/x402/market-intel/jobsCreate market-intel jobPaid $0.05 + SIWX. 200 for replay or 202 for a new job.
GET
/api/x402/market-intel/jobs/{jobId}Read market-intel jobFree (SIWX) + ownership.