{"uid":"cap_E_PyYnmLL8pH7c6jXFySa","slug":"phantom-api-robinhood-gas-estimate-54c64edc","name":"Phantom API — Robinhood Gas Estimate","description":"Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.","url":"https://phantom-api-omega.vercel.app/api/robinhood/gas/estimate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string"},"data":{"type":"string"},"from":{"type":"string"},"value":{"type":"string"}}},"responseSchema":null,"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_uAILzS5l1OCY_0vvreVHX","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":"Estimates the gas cost for an Ethereum transaction given to/from addresses, calldata, and value","exampleAgentPrompt":"Before I send this Ethereum transaction to 0xRecipient from 0xMySender with calldata 0xabcdef and a value of 0.5 ETH, can you estimate how much gas it will cost?","exampleUseCases":[{"title":"Pre-flight DeFi trade gas check","prompt":"I'm about to swap tokens on Uniswap — can you estimate the gas cost for this transaction? The 'to' contract is 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45, my wallet is 0xMyWallet, and the calldata is 0x5ae401dc..."},{"title":"Smart contract deployment cost preview","prompt":"Before I deploy my NFT contract, estimate the gas needed — the 'to' field is empty, 'from' is 0xMyDeployer, and here's the bytecode as the data field: 0x6080604052..."},{"title":"Safe ETH transfer gas estimation","prompt":"I want to send 1 ETH from 0xSenderWallet to 0xReceiverWallet with no extra calldata — what's the estimated gas cost for this plain ETH transfer?"}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the described Ethereum transaction, allowing the caller to calculate the total fee cost before broadcasting.","failureModes":["Invalid or malformed address for 'to' or 'from' fields returns an error","Malformed or non-hex calldata causes a parse error","Network unavailability or RPC node failure returns a 5xx error","Transaction simulation reverts on-chain (e.g. insufficient allowance, failed require) may return revert reason or error","Missing required fields may result in a 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call gas estimate for an Ethereum transaction before broadcasting it, especially in agentic workflows where you want to validate affordability or display cost previews without setting up your own RPC infrastructure. Prefer this over self-hosted solutions when you want zero infrastructure overhead and are already operating in an x402 micropayment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:56:44.003Z","isFirstParty":false,"canonicalSlug":"phantom-api-robinhood-gas-estimate-54c64edc"}