{"uid":"cap_YLXQCs51JP2LJ-FunXGtK","slug":"phantom-api-soneium-gas-estimator-ea990dde","name":"Phantom API – Soneium 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/soneium/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_TzmUQyzBWRA9o278kSHkw","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 a transaction on the Soneium blockchain network before it is submitted.","exampleAgentPrompt":"Before I send a transaction on Soneium to contract 0xAbC...123 with calldata 0xdeadbeef from my wallet 0x456...789 carrying 0 ETH, can you estimate how much gas it will use?","exampleUseCases":[{"title":"Pre-flight check before DeFi swap","prompt":"I'm about to call a swap contract on Soneium — the contract address is 0xAAA...111, my wallet is 0xBBB...222, the calldata is 0xa9059cbb..., and I'm sending 0 ETH. Estimate the gas cost for me before I submit it."},{"title":"Smart contract deployment cost estimate","prompt":"I want to know how much gas deploying my smart contract will cost on Soneium — the bytecode is 0x6080..., sending from 0xCCC...333, no ETH value attached. Can you give me a gas estimate?"},{"title":"Budget check for NFT mint transaction","prompt":"I'm minting an NFT on Soneium and want to know the gas before I confirm — recipient contract is 0xDDD...444, my address is 0xEEE...555, calldata is 0x1249c58b, value is 0. What's the estimated gas?"}],"resultDescription":"Returns a gas estimate for the described Soneium transaction, typically including the estimated gas units required and possibly the current gas price, allowing callers to compute total transaction cost before broadcasting.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns a 400 error","Malformed calldata in 'data' field causes estimation failure","Transaction would revert on-chain — estimator returns an error or revert reason","Soneium RPC node unavailable — returns 503 or timeout","Insufficient value causing underflow in simulation returns estimation error","Empty or missing required fields may cause a 422 validation error"],"whenToPreferThis":"Use this endpoint when you specifically need gas estimation on the Soneium network before submitting a transaction. Prefer it over generic ETH mainnet estimators when targeting Soneium-specific contracts or DApps. Ideal for pre-flight cost checks, budget validation, and UX flows that show users their expected fees before signing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:47.649Z","isFirstParty":false}