{"uid":"cap_Vy5n0HCn0-pVey0dBR9AO","slug":"phantom-api-linea-gas-estimator-7567f739","name":"Phantom API — Linea 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/linea/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_RjrWFO2mYFXS3fXJVqLSv","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 Linea blockchain network before submission","exampleAgentPrompt":"Before I send this transaction on Linea — calling contract 0xAbC...123 with data 0xd0e30c0b from my wallet 0x456...789 — can you estimate how much gas it's going to cost me?","exampleUseCases":[{"title":"Pre-flight DeFi swap cost check","prompt":"I want to swap tokens on a Linea DEX but first estimate the gas cost — the contract is 0xDEF...456, my wallet is 0xABC...789, and I'm sending 0.5 ETH worth of value with swap calldata 0xa9059cbb..."},{"title":"Smart contract deployment gas estimate","prompt":"Can you estimate how much gas it'll cost to deploy my smart contract on Linea? The bytecode data is 0x6080604052... and I'm deploying from address 0x111...222."},{"title":"ETH transfer fee preview","prompt":"I'm about to send 1 ETH to 0x999...888 on Linea from my address 0x111...333 — what's the estimated gas fee so I know if I have enough to cover it?"}],"resultDescription":"Returns an estimated gas value (in gas units) for the described transaction on the Linea network, allowing callers to determine whether they have sufficient funds and to set appropriate gas limits before submitting the actual transaction.","failureModes":["Invalid or malformed address fields return an error response","Unsupported or missing 'to' field for contract calls may cause estimation failure","Network congestion or RPC node unavailability may return a 503 or timeout","Providing invalid hex for 'data' field may cause a parse error","Insufficient USDC payment via x402 returns a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call gas estimate specifically on the Linea network without maintaining your own RPC node infrastructure. Ideal for agents that need to pre-check transaction feasibility before execution, or for cost-aware workflows that need to budget gas fees dynamically. Prefer over self-hosted RPC solutions when low operational overhead and per-call pricing ($0.01 USDC) is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:42:38.077Z","isFirstParty":false,"canonicalSlug":"phantom-api-linea-gas-estimator-7567f739"}