{"uid":"cap_8gmVRMhlKIEMG1tbSSPq-","slug":"phantom-api-ethereum-gas-estimate-ccc88511","name":"Phantom API — Ethereum 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/ethereum/gas/estimate","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_YHK7qWU7zOHnaVMAeZDss","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 required to execute an Ethereum transaction given sender, recipient, calldata, and value","exampleAgentPrompt":"Before I send this Ethereum transaction — from 0xAbC123... to the Uniswap router at 0xDef456... with calldata 0xa9059cbb... and 0.05 ETH value — can you estimate how much gas it will need?","exampleUseCases":[{"title":"Pre-flight check for DeFi swap","prompt":"I'm about to call the Uniswap V3 swap router from 0xMyWallet to 0xUniswapRouter with this calldata 0xabc123... and 0 ETH value — estimate the gas before I submit so I know it won't fail."},{"title":"NFT mint gas budgeting","prompt":"How much gas will minting an NFT on this contract cost? Sender is 0xMinter, contract is 0xNFTContract, calldata is 0x1249c58b, and I'm sending 0.08 ETH with it."},{"title":"Validate contract call won't revert","prompt":"Can you do a gas estimate for a transaction from 0xDeployer to 0xMyContract with calldata 0xd0e30db0 and no ETH value? I want to confirm it won't run out of gas before I broadcast it."}],"resultDescription":"Returns a gas estimate (in units) representing the computational cost of executing the specified Ethereum transaction, useful for setting gas limits and estimating transaction fees before submission.","failureModes":["Invalid or malformed Ethereum address for 'to' or 'from' returns an error","Reverting transaction (would fail on-chain) may return an error or revert reason instead of a gas estimate","Malformed or invalid calldata hex string causes a bad request error","Missing required fields may result in a default simulation with limited accuracy","Payment failure via x402 protocol blocks the request before execution","Network congestion or RPC backend unavailability causes timeout or 503"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call Ethereum gas estimate without managing your own RPC node or committing to a subscription. Ideal for agents that need to preflight transactions across many users or contracts on-demand. Prefer this over self-hosted solutions when minimizing infrastructure overhead and you only need occasional gas checks at $0.01 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:02:04.150Z","isFirstParty":false}