{"uid":"cap_fsofb1mPKSfIMqHO4NYcf","slug":"phantom-api-base-network-gas-estimator-471b85e2","name":"Phantom API — Base Network Gas Estimator","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/base/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_tz9vzwokpkWWf4JcdcILv","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 costs for a transaction on the Base blockchain network before submission","exampleAgentPrompt":"Before I send 0.5 ETH from 0xAbC...123 to 0xDeF...456 on Base, can you estimate how much gas this transaction will cost so I know if I have enough to cover fees?","exampleUseCases":[{"title":"Pre-flight gas check for ETH transfer","prompt":"I want to send 0.1 ETH from my wallet 0x1234...abcd to 0x5678...efgh on Base — can you estimate the gas cost before I confirm the transaction?"},{"title":"Smart contract call cost estimation","prompt":"Before I call this contract method on Base — to address 0xContractAddr, data 0xCalldata, from my wallet 0xMyWallet — can you estimate how much gas it'll consume so I don't run out?"},{"title":"DeFi swap gas budget planning","prompt":"I'm about to do a swap on a Base DEX. My wallet is 0xMyDeFiWallet, the router contract is 0xRouterAddr, and here's the swap calldata: 0xSwapData. What's the estimated gas cost so I can budget correctly?"}],"resultDescription":"Returns a gas estimate for the described transaction on the Base network, typically including the estimated gas units required and potentially the recommended gas price, allowing the caller to calculate total transaction cost in ETH before submitting.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed hex data in the 'data' field causes parsing failure","Simulated transaction reverts on-chain returns an execution revert error","Base network RPC unavailability causes timeout or 503","Missing required fields (e.g. 'to') may return a validation error","Extremely complex contract interactions may produce inaccurate estimates"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call gas estimate specifically on the Base network without managing your own RPC infrastructure. Ideal for AI agents that need to pre-validate transaction affordability before execution, or for apps that want to surface gas cost previews to users. Prefer this over self-hosted eth_estimateGas calls when you want zero infrastructure overhead and are already using x402 micropayment rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:38:58.365Z","isFirstParty":false,"canonicalSlug":"phantom-api-base-network-gas-estimator-471b85e2"}