{"uid":"cap_WE_Jmk5HzRt0eMud1lR-5","slug":"phantom-api-citrea-gas-estimation-032b1303","name":"Phantom API — Citrea 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/citrea/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_BYc0KnKMfwQeS6c3B3B7c","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 Citrea network before submission","exampleAgentPrompt":"Before I send this transaction on Citrea — calling contract 0xAbC...123 with this calldata from my wallet 0xDef...456 with a value of 0.01 ETH — can you estimate how much gas it'll need?","exampleUseCases":[{"title":"Pre-flight check before DeFi swap","prompt":"I want to swap tokens on a Citrea DEX — can you estimate the gas cost for this contract call from 0xSender123 to 0xDEXRouter456 with the swap calldata 0xaabbccdd before I actually submit it?"},{"title":"Smart contract deployment cost check","prompt":"I'm about to deploy a contract on Citrea. Can you estimate the gas for this deployment transaction from 0xDeployer789 with this bytecode data so I know if I have enough to cover it?"},{"title":"Gas budget planning for batch operations","prompt":"I need to know how much gas a single token transfer call costs on Citrea — from 0xMyWallet to 0xRecipient with the ERC-20 transfer calldata — so I can budget for running 50 of these."}],"resultDescription":"Returns a gas estimate (in gas units) for the described transaction on the Citrea network, allowing callers to predict transaction costs and validate feasibility before on-chain submission.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns a validation error","Malformed or non-hex 'data' field may cause a parsing error","Network unavailability or RPC timeout on Citrea returns a 5xx error","Insufficient USDC payment (must include $0.01 via x402 protocol) returns HTTP 402","Transaction simulation that would revert on-chain may return an error or revert reason"],"whenToPreferThis":"Use this endpoint when you need a gas estimate specifically on the Citrea Bitcoin Layer 2 network before submitting a transaction. Prefer this over generic Ethereum gas estimators when the target chain is Citrea. It is pay-per-call at $0.01 USDC via x402, making it suitable for agents that need occasional on-demand estimates without a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:53:31.769Z","isFirstParty":false,"canonicalSlug":"phantom-api-citrea-gas-estimation-032b1303"}