{"uid":"cap_ihKrUQwf6EiBFd4ojYuR0","slug":"phantom-api-berachain-gas-estimator-d9d43d92","name":"Phantom API — Berachain 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/berachain/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_zTCccUoSYGt1rHNqUYN3b","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 transactions on the Berachain network given sender, recipient, calldata, and value.","exampleAgentPrompt":"Estimate the gas needed for a Berachain transaction from 0xAbC...123 to the contract at 0xDeF...456 with calldata 0xa9059cbb000...0064 and a value of 0.","exampleUseCases":[{"title":"Pre-flight DeFi swap gas check","prompt":"Before I submit this token swap on Berachain, estimate the gas cost — the sender is 0xAbc...111, the router contract is 0xDef...222, and the encoded swap calldata is 0x38ed1739...0064 with no ETH value attached."},{"title":"Smart contract deployment cost estimation","prompt":"I'm about to deploy a contract on Berachain from wallet 0x111...aaa to the zero address — can you estimate the gas for the deployment bytecode 0x6080604052...?"},{"title":"Safe transaction budget planning","prompt":"I need to budget gas fees for sending BERA tokens from 0x999...bbb to 0x888...ccc on Berachain — can you estimate the gas for this transfer with calldata 0xa9059cbb... and value 1000000000000000000?"}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the specified transaction on the Berachain network, allowing callers to plan fee budgets before submission.","failureModes":["Invalid or malformed address in 'to' or 'from' field returns an error","Malformed or non-hex calldata in 'data' field causes a parse error","Transaction simulation fails if the contract reverts, returning an execution error","Network unavailability or Berachain RPC downtime results in a timeout or 503 error","Missing required fields may return a 400 bad request","Value format mismatch (e.g. non-hex string for value) may cause a parsing failure"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call gas estimate specifically on the Berachain network without managing your own RPC node or SDK setup. Prefer it over general Ethereum gas estimators when the target chain is Berachain, and over full node solutions when you want zero infrastructure overhead with per-call micropayment pricing via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:25.363Z","isFirstParty":false,"canonicalSlug":"phantom-api-berachain-gas-estimator-d9d43d92"}