{"uid":"cap_-vPi4zr1QKi0HgNo8yIAO","slug":"phantom-api-gas-estimation-ebd82d5c","name":"Phantom API — Gas Estimation","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/tempo/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_lgXdAaMeoTuMqAC-mHXeI","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 for an Ethereum-compatible transaction given sender, recipient, data, and value","exampleAgentPrompt":"Estimate how much gas it will take to call this contract — sending from 0xAbC...123 to 0xDef...456 with this calldata: 0xa9059cbb000000... and a value of 0 ETH.","exampleUseCases":[{"title":"Pre-flight gas check for DeFi swap","prompt":"Before I submit this DEX swap transaction, estimate the gas cost — from address 0xABC...111 to the Uniswap router at 0xDEF...222 with calldata 0x38ed1739... and value 0."},{"title":"Smart contract deployment cost estimation","prompt":"How much gas will it cost to deploy my smart contract? The deployer is 0x111...AAA, the to address is empty, and the bytecode data starts with 0x608060405..."},{"title":"ETH transfer gas estimation","prompt":"I want to send 0.5 ETH from my wallet 0xAAA...999 to 0xBBB...888 — can you estimate the gas units needed for that plain ETH transfer?"}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the described transaction on an EVM-compatible chain, computed by simulating the transaction without broadcasting it.","failureModes":["Invalid address format for 'to' or 'from' fields returns a validation error","Malformed or non-hex calldata in 'data' field causes parsing failure","Unsupported network or unavailable RPC may return a 503 or empty response","Payment not completed (x402 protocol) returns a 402 Payment Required response","Simulated transaction that would revert on-chain may return an error or revert reason"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call gas estimate for EVM transactions without managing your own RPC node or Web3 provider. Ideal for agents that need to pre-validate transaction costs before signing or submitting, especially across multiple networks. Prefer this over self-hosted solutions when cost-per-call at $0.01 USDC is acceptable and infrastructure management overhead should be minimized.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:45:29.379Z","isFirstParty":false,"canonicalSlug":"phantom-api-gas-estimation-91ba56a7"}