{"uid":"cap_Pik4LZVtfKuReYD3hfTj0","slug":"treasury-preflight-74d8ea5f","name":"Treasury Preflight","description":"x402-paid preflight checks for stablecoin transfers.","url":"https://preflight.admapu.xyz/v1/route?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["token"],"properties":{"token":{"enum":["USDC","USDT"],"type":"string"},"amount":{"type":"string","description":"Transfer size in USD, used for fee in basis points"},"chains":{"type":"string","description":"Comma list from ethereum, base, arbitrum, optimism, polygon"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"token":"USDC","amount":2500,"options":[{"block":36123456,"chain":"base","token":"USDC","feeBps":0.0084,"feeUsd":0.0021,"timing":{"advice":"send_now","percentile24h":41},"gasUnits":45012,"feeNative":"0.000000812","observedAt":"2026-09-30T14:00:00.000Z","validUntil":"2026-09-30T14:00:12.000Z","l1FeeNative":"0.000000281","gasPriceGwei":0.0118,"nativeSymbol":"ETH","gasSampleSize":17}],"cheapest":{"chain":"base","feeUsd":0.0021,"timing":"send_now"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RRFUKKf_uf9Ra-0Ox3-u2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns per-chain gas fees, timing advice, and cost estimates for USDC/USDT stablecoin transfers before executing them.","exampleAgentPrompt":"Before I send $2500 in USDC, can you check which chain — Base, Arbitrum, Optimism, or Polygon — has the lowest fees right now and whether I should send immediately?","exampleUseCases":[{"title":"Cheapest chain for bulk USDC payout","prompt":"I need to send $10,000 USDC to a vendor — check Base, Arbitrum, and Polygon right now and tell me which chain will cost me the least in fees and if now is a good time to send."},{"title":"Gas timing decision for USDT transfer","prompt":"I'm about to send $500 USDT on Ethereum — can you do a preflight check and tell me whether I should send now or wait based on current gas conditions?"},{"title":"Multi-chain fee comparison for stablecoin treasury","prompt":"Compare the current transfer fees for USDC across all supported chains — Ethereum, Base, Arbitrum, Optimism, and Polygon — and give me a breakdown of costs and timing advice for each."}],"resultDescription":"A JSON object listing each requested chain as a route option, each with current block number, fee in basis points and USD, gas units, gas price in gwei, native token fee, timing advice (e.g. 'send_now'), a 24h percentile ranking, and a validity window. Also includes a top-level 'cheapest' field summarizing the best chain, its fee in USD, and timing recommendation.","failureModes":["Unsupported token enum value returns validation error","Invalid or missing 'token' query parameter causes 400-level error","Unrecognized chain name in comma-separated list may be silently ignored or cause error","Response validity window is short (~12 seconds) — stale if not acted on immediately","Network congestion or RPC issues may delay or fail gas sampling","Payment failure via x402 protocol will block the request"],"whenToPreferThis":"Use this endpoint when you need real-time, multi-chain fee comparison for USDC or USDT transfers before committing to a transaction — especially when optimizing for cost or timing across Base, Arbitrum, Optimism, Polygon, or Ethereum. Prefer this over static fee tables or wallet estimates when you need current gas prices, timing advice, and a direct cheapest-chain recommendation in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:35:39.690Z","isFirstParty":false,"canonicalSlug":"treasury-preflight-fd7af14b"}