{"uid":"cap_qI4WO-lNSwMzNHHnWgmEx","slug":"phantom-api-gas-estimation-for-on-chain-transactions-aa9661fd","name":"Phantom API — Gas Estimation for On-Chain Transactions","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/plasma/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_-CCgfAibdOp_pYE91RYTZ","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, calldata, and value fields across 57+ blockchain networks.","exampleAgentPrompt":"Estimate the gas needed to call this contract at 0xAbC123... with the calldata 0xa9059cbb... and a value of 0.1 ETH, sent from my wallet at 0xDef456...","exampleUseCases":[{"title":"Pre-flight gas check for token transfer","prompt":"Before I send 500 USDC to 0x1234abcd... from my wallet 0x9876fedc..., can you estimate how much gas that transaction will consume?"},{"title":"Smart contract interaction cost preview","prompt":"I want to call a smart contract at 0xDeAdBeEf... with calldata 0x38ed1739... and no ETH value — estimate the gas cost for me so I can decide if it's worth it."},{"title":"DeFi trade simulation before execution","prompt":"Simulate the gas usage for a Uniswap swap where my wallet 0xAaBbCc... is the sender, the router is 0x7a250d... and the calldata is 0x18cbafe5... with 0.5 ETH as the value."}],"resultDescription":"Returns an estimated gas amount (in gas units) for the described transaction, allowing the caller to anticipate transaction costs and configure gas limits before submitting to a blockchain network.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed calldata in 'data' field causes simulation failure","Unsupported network or chain context results in an error response","Payment not received or insufficient USDC results in 402 rejection","Contract at target address reverts during simulation, causing estimation failure"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call gas estimation across a wide range of EVM-compatible chains without managing your own node infrastructure. Ideal for agents that need to simulate transaction costs before execution, especially when multi-chain support (57+ networks) is needed without a long-term subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:18.491Z","isFirstParty":false,"canonicalSlug":"phantom-api-gas-estimation-for-on-chain-transactions-aa9661fd"}