{"uid":"cap_y0cuySEHRkbokxppeaPdm","slug":"phantom-api-sonic-gas-estimator-45f7895d","name":"Phantom API — Sonic 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/sonic/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_nNFEkB6eQ98Cb_iZJOxd9","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 Sonic blockchain network before submission","exampleAgentPrompt":"Estimate the gas cost for a Sonic network transaction from 0xAbC...123 to 0xDeF...456 with calldata 0xa9059cbb... and a value of 0 ETH before I submit it.","exampleUseCases":[{"title":"Pre-flight gas check for token transfer","prompt":"Before I send 100 USDC to 0x1234...abcd on Sonic, can you estimate how much gas that transfer will cost so I know if my wallet has enough?"},{"title":"Smart contract interaction cost estimate","prompt":"I want to call a swap function on a Sonic DEX — the contract is 0xDEF...789, calldata is 0x38ed1739..., from my address 0xABC...001. What's the expected gas cost before I sign anything?"},{"title":"Budget planning for DeFi automation","prompt":"I'm building an automated yield farming bot on Sonic and need to know the estimated gas cost for a typical harvest transaction with this calldata: 0x4e71d92d, from 0xBot...111 to 0xFarm...222."}],"resultDescription":"Returns an estimated gas amount (in gas units) for the specified transaction on the Sonic network, enabling the caller to assess transaction cost and feasibility before broadcasting.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns a 400 error","Malformed calldata in the 'data' field causes estimation failure","Sonic network node unavailability leads to timeout or 503 error","Payment not included or insufficient triggers a 402 Payment Required response","Transaction that would revert on-chain may return an error or zero estimate"],"whenToPreferThis":"Use this endpoint when you need to estimate gas costs specifically on the Sonic blockchain network before submitting a transaction. Prefer it over generic gas APIs when working with Sonic-native DeFi protocols, smart contracts, or token transfers on that chain. It is appropriate for pre-flight checks, wallet UX, or cost-budgeting in automated agents operating on Sonic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:03.997Z","isFirstParty":false}