{"uid":"cap_uNfYSN9DzL2nhcPqDwLdt","slug":"phantom-api-worldchain-gas-estimator-7ae5f3f0","name":"Phantom API — Worldchain 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/worldchain/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_7bpAJo0UTTYRIK-G-P6ih","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 Worldchain network before submission","exampleAgentPrompt":"Before I send this Worldchain transaction from 0xAbC...123 to the contract at 0xDef...456 with calldata 0xa9059cbb... and a value of 0 ETH, can you estimate how much gas it will use?","exampleUseCases":[{"title":"Pre-flight check for token transfer","prompt":"I'm about to send some tokens on Worldchain from 0x1234...abcd to 0x5678...efgh — can you estimate the gas cost before I actually submit the transaction?"},{"title":"Smart contract interaction cost check","prompt":"I want to call a smart contract on Worldchain with this calldata: 0xa9059cbb000000... from my wallet 0xABCD...1234. What's the estimated gas I should budget for?"},{"title":"DApp fee preview before user signs","prompt":"My user is about to approve a contract interaction on Worldchain — can you run a gas estimate for the transaction going to 0xDEF...5678 with value 0.01 ETH so I can show them the fee upfront?"}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the specified transaction on the Worldchain network, allowing callers to budget fees and avoid out-of-gas failures before actual submission.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed or non-hex 'data' field causes a parse error","Simulation reverts if the contract call would revert on-chain","Network unavailability or RPC timeout may return a 5xx error","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call gas estimate specifically on the Worldchain network without managing your own RPC infrastructure. Ideal for agents that need pre-flight fee checks before submitting transactions, or DApps that want to surface fee previews to users without a dedicated node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:52:12.164Z","isFirstParty":false}