{"uid":"cap_MKn8FUj2bIlkN5I0uyUVl","slug":"phantom-api-gas-estimation-91ba56a7","name":"Phantom API — Gas Estimation","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/stable/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_xBjEsI4-F0AufaTVt_1dF","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 gas cost for an Ethereum-compatible transaction before it is submitted on-chain","exampleAgentPrompt":"Estimate the gas needed to call this contract — from address 0xAbC...123, to contract 0xDeF...456, with calldata 0xa9059cbb...000064, and no ETH value attached.","exampleUseCases":[{"title":"Pre-flight check for token transfer","prompt":"Before I send 100 USDC from my wallet 0xAbC...123 to 0xDeF...456, can you estimate how much gas that transfer will cost so I know if I have enough ETH to cover fees?"},{"title":"Smart contract interaction cost check","prompt":"I want to call the mint function on this NFT contract at 0x1234...abcd with this calldata 0x6a627842..., from my address 0xAABB...CCDD — estimate the gas for me before I go ahead."},{"title":"Budget forecasting for agent-executed transactions","prompt":"My agent is about to batch a bunch of on-chain operations — can you estimate gas for this transaction: from 0xSender, to 0xContractAddress, data 0xCalldata, value 0.05 ETH, so I can figure out the total cost before it runs?"}],"resultDescription":"Returns an estimated gas unit amount for the described transaction, reflecting how much computational work the EVM would need to execute it. This lets callers predict fees before broadcasting.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns a 400 error","Malformed hex in 'data' field may cause estimation failure","If the target contract would revert, the gas estimate may fail or return an error indicating the transaction would fail","Network unavailability or RPC timeout results in a 5xx error","Missing required fields may produce an incomplete estimation or error"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call gas estimate for an Ethereum-compatible transaction without managing your own RPC node or subscribing to a full blockchain data provider. Ideal for agents that need lightweight, on-demand gas cost checks before submitting transactions, especially across 57+ supported networks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:32:50.197Z","isFirstParty":false}