{"uid":"cap_zpUcvc6Srl6KGIFLJu3BK","slug":"phantom-api-boba-network-gas-estimator-645526bb","name":"Phantom API — Boba Network 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/boba/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_NJZO-2jcS_bxif98e1gne","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 Boba Network before submission","exampleAgentPrompt":"Before I send this contract call on Boba Network — to address 0xAbC...123 with calldata 0xd46e8dd6... and 0.05 ETH value from my wallet 0xDEF...456 — can you estimate the gas it'll use?","exampleUseCases":[{"title":"Pre-flight check before DeFi swap","prompt":"I want to call a Boba Network DEX contract at 0x1234...abcd with this swap calldata 0xa9059cbb... from my address 0x9876...fedc before I actually send it — can you estimate the gas so I don't get surprised by fees?"},{"title":"Smart contract deployment cost preview","prompt":"I'm about to deploy a contract on Boba Network. The bytecode data is 0x6080604052..., sending from 0xAABB...CCDD with no ETH value. Estimate the gas for me first so I can decide if now is a good time."},{"title":"Budgeting ETH for an NFT mint","prompt":"I'm planning to mint an NFT on Boba Network — the minting contract is 0xMint...1111, my wallet is 0xMyWallet...2222, value is 0.1 ETH, and the calldata is 0x1249c58b. What's the gas estimate so I can make sure I have enough in my wallet?"}],"resultDescription":"Returns an estimated gas unit count (and potentially an estimated fee) for the specified transaction on Boba Network, without broadcasting the transaction to the chain. Allows callers to plan transaction budgets before execution.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns a 400-level error","Malformed calldata hex string causes estimation failure","Boba Network node unavailability leads to timeout or 503 error","Missing required fields (e.g. no 'to') may return a validation error","Transactions that would revert on-chain may fail estimation with a revert reason"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.01 USDC) gas estimate specifically for Boba Network (an Ethereum L2 optimistic rollup) before submitting a transaction. Prefer this over on-chain simulation if you want a pre-flight cost check without broadcasting. Not suitable for other EVM chains — use chain-specific sibling endpoints for Ethereum mainnet, Polygon, etc.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:57.111Z","isFirstParty":false}