{"uid":"cap_4nM3Su69qJB48v_zPSYdn","slug":"phantom-api-unichain-gas-estimator-1b5d40ab","name":"Phantom API — Unichain 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/unichain/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_2--ahQaZbpVLcNYprSMVz","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 of a transaction on the Unichain network before sending it","exampleAgentPrompt":"Estimate the gas for a Unichain transaction from 0xAbC...123 to the contract at 0xDeF...456 with calldata 0xa9059cbb... and a value of 0 ETH.","exampleUseCases":[{"title":"Pre-flight DeFi swap cost check","prompt":"Before I submit this Uniswap swap on Unichain, estimate the gas — the sender is 0xabc123..., recipient contract is 0xdef456..., calldata is 0x38ed1739..., and value is 0."},{"title":"Smart contract deployment gas estimate","prompt":"Can you estimate how much gas it'll cost to deploy my smart contract on Unichain? The from address is 0x111aaa..., the data is the compiled bytecode 0x6080604052..., and I'm sending no ETH with it."},{"title":"Safe transaction budget planning","prompt":"I want to know the gas cost for calling 0x23b872dd on the Unichain contract at 0x789xyz... from my wallet 0xabc999..., value is 0, before I actually send it."}],"resultDescription":"Returns a gas estimate (in gas units) for the described transaction on Unichain, allowing the caller to predict cost before broadcasting the transaction to the network.","failureModes":["Invalid or malformed address in 'to' or 'from' fields — returns a 400 or RPC error","Reverted simulation — if the transaction would revert on-chain, the estimate call may fail with a revert reason","Missing required fields — omitting 'to' without providing 'data' for a deployment may cause errors","Network unavailability — Unichain RPC node downtime returns a 502 or timeout","Payment failure — if x402 payment is not included or is insufficient, returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you specifically need to estimate gas on the Unichain network prior to submitting a transaction. It is ideal for agents that need to budget transaction costs, validate transaction feasibility, or decide whether to proceed with an on-chain action without incurring actual gas spend. Prefer this over general EVM gas estimators when your target chain is Unichain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:48:49.280Z","isFirstParty":false}