{"uid":"cap_OGrJTEq_-4zqcP58zoNxm","slug":"phantom-api-gas-estimation-for-evm-transactions-85008f29","name":"Phantom API — Gas Estimation for EVM Transactions","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/degen/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_5LTjXfGRNoLSIPToQnw31","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 EVM-compatible smart contract call or transfer before submitting it on-chain","exampleAgentPrompt":"Before I send this contract call, estimate the gas cost — the transaction is from 0xAbC...123 to 0xDef...456, with this calldata: 0xa9059cbb000...000, and no ETH value attached.","exampleUseCases":[{"title":"Pre-flight check for DeFi swap","prompt":"I want to call a Uniswap swap function on Ethereum. Can you estimate the gas for a transaction from 0xMyWallet to 0xUniswapRouter with this calldata: 0x38ed1739... before I actually submit it?"},{"title":"Token transfer gas estimate","prompt":"How much gas will it cost to transfer 100 USDC? The sender is 0xSender123, recipient is 0xRecipient456, and the ERC-20 transfer calldata is 0xa9059cbb..."},{"title":"Smart contract deployment cost check","prompt":"Before I deploy this contract, estimate how much gas it'll take — from address 0xDeployer to null, with this bytecode as the data field, and zero ETH value."}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the specified transaction, allowing the caller to budget fees and detect potential out-of-gas failures before submission.","failureModes":["Invalid or malformed Ethereum address in 'to' or 'from' fields — returns error","Invalid hex calldata in 'data' field — returns parsing error","Transaction would revert on-chain — gas estimation may fail with revert reason","Network or RPC connectivity issues — returns 5xx error","Missing required fields — returns 400 validation error"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call gas estimate for EVM transactions across 57+ networks without managing your own RPC node infrastructure. Prefer it over running your own eth_estimateGas RPC call when you want a hosted, low-latency solution with simple HTTP semantics and micro-payment billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:49:54.453Z","isFirstParty":false,"canonicalSlug":"phantom-api-gas-estimation-for-evm-transactions-85008f29"}