{"uid":"cap_0y9RVGH3KI3GgfTsxixyD","slug":"phantom-api-pharos-gas-estimator-59a9f13b","name":"Phantom API — Pharos 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/pharos/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_JTQvqpwJhFQvbxjwZcoIk","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 Pharos network given transaction parameters such as sender, recipient, data, and value.","exampleAgentPrompt":"Estimate the gas needed to call a contract at 0xAbCd1234... on Pharos, sending from 0x1111aaaa... with calldata 0xa9059cbb... and no ETH value attached.","exampleUseCases":[{"title":"Pre-flight check before contract call","prompt":"Before I submit this token transfer on Pharos, estimate the gas for sending from 0xSenderAddr to 0xRecipientAddr with ERC20 transfer calldata 0xa9059cbb... and zero ETH value so I know if it'll be affordable."},{"title":"DeFi swap cost estimation","prompt":"I want to do a DEX swap on Pharos — can you estimate how much gas it'll take? The transaction goes from 0xMyWallet to 0xDexRouter with this calldata 0x38ed1739... and no ETH value."},{"title":"Contract deployment gas budget","prompt":"I'm about to deploy a smart contract on Pharos and need to know the gas estimate — sender is 0xDeployerWallet, no recipient, and the deployment bytecode is 0x6080604052..."}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the specified transaction on the Pharos network. This lets callers predict transaction fees before broadcasting, avoiding failed transactions due to gas under-estimation.","failureModes":["Invalid or malformed address in 'to' or 'from' fields — returns error or null estimate","Invalid calldata hex string in 'data' field — parsing error","Transaction simulation reverts on-chain — may return revert reason or error","Network unavailable or RPC node unresponsive — timeout or 503 error","Payment not attached or insufficient USDC — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call gas estimate on the Pharos network without managing your own RPC node or API key. It is ideal for agents that need to sanity-check transaction costs before execution, or for DeFi workflows where fee budgeting is critical. Prefer this over running your own eth_estimateGas calls if you don't have Pharos RPC access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:48:20.524Z","isFirstParty":false}