{"uid":"cap_-HM2HgDy5-IGDtXc7HdGx","slug":"evm-transaction-preflight-gas-usd-cost-erc-20-metadata-f8a8a585","name":"EVM Transaction Preflight (Gas + USD Cost + ERC-20 Metadata)","description":"Pay-per-request data endpoints for AI agents: crypto prices, Bybit funding APY, verified testnet airdrop landscape, DeFi stablecoin yields, GitHub trending, agent-economy market pulse, and an EVM tx preflight (gas + USD cost + ERC-20 metadata). Pay with USDC on Base via x402 - no API keys, no registration.","url":"https://mi-desktop.rainbow-dab.ts.net:10000/v1/evm/preflight","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"chains":[{"chain":"base","chain_id":8453,"native_usd":2446.77,"est_tx_cost":{"native_transfer":{"usd":0.00031,"gas_units":21000,"native_fee":1.26e-7}},"native_symbol":"ETH","gas_price_gwei":0.006}],"tokens":[{"name":"USD Coin","symbol":"USDC","address":"0x8335...","decimals":6}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VaWrEz-onTkiWxQN10QGU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time EVM chain gas prices, estimated transaction costs in USD and native token, and ERC-20 token metadata for a given address on Base and other chains.","exampleAgentPrompt":"Before I send a USDC transfer on Base, can you preflight the transaction and tell me the current gas price in gwei, the estimated cost in USD, and confirm the USDC contract address (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) including its decimals?","exampleUseCases":[{"title":"Pre-send cost check on Base","prompt":"I'm about to send some ETH on Base — can you check the current gas price and tell me exactly how much a standard native transfer will cost me in USD right now?"},{"title":"ERC-20 token metadata validation","prompt":"I have this contract address on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — can you confirm it's USDC, get its symbol and decimals, and tell me what the current gas cost would be to transfer it?"},{"title":"Agentic wallet pre-flight before payment","prompt":"Before my agent submits an on-chain transaction on Base, preflight it — give me the gas units needed for a native transfer, the gas price in gwei, and the total estimated USD cost so I can decide whether to proceed."}],"resultDescription":"Returns a JSON object with an array of chain objects (chain name, chain ID, native asset USD price, gas price in gwei, estimated tx cost in USD, gas units, and native fee for a standard transfer) plus an array of ERC-20 token objects (name, symbol, contract address, decimals).","failureModes":["Payment not included or insufficient USDC on Base causes 402 Payment Required","Invalid or unsupported chain ID returns empty chains array","Unrecognized ERC-20 contract address returns empty tokens array or null metadata","Network timeout or upstream RPC failure returns 5xx error","Malformed query parameters may result in 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a combined, single-call preflight that returns both current gas costs (in gwei and USD) AND ERC-20 token metadata before submitting an on-chain transaction — especially on Base. It is ideal for AI agent wallets that need to budget transaction fees in USD terms without holding separate oracle and token-registry subscriptions. No API key or registration is required; pay $0.002 USDC per call via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T06:30:14.055Z","isFirstParty":false}