{"uid":"cap__1MaGtjr37H-NR5H23Ln1","slug":"phantom-api-mantle-gas-estimation-2938c948","name":"Phantom API – Mantle 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/mantle/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_LzlSS3DnXkoVgRHl6Dvls","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 a transaction on the Mantle network given recipient, calldata, sender, and value.","exampleAgentPrompt":"Estimate the gas needed for a Mantle transaction from 0xAbCd...1234 to the contract at 0x5678...EfGh with calldata 0xa9059cbb000...0001 and a value of 0 MNT.","exampleUseCases":[{"title":"Pre-flight check for token transfer","prompt":"Before I send 500 USDC to 0xRecipient...5678 on Mantle from my wallet 0xMine...1234, can you estimate how much gas that transfer will use so I know the fee?"},{"title":"Smart contract interaction cost preview","prompt":"I want to call a swap function on a Mantle DEX contract at 0xDEX...9abc with my encoded calldata — can you estimate the gas cost before I submit so I don't overpay?"},{"title":"Gas budget planning for DApp","prompt":"We're building a feature that batches 50 Mantle transactions a day — can you estimate the gas for one sample call from 0xApp...1111 to our contract at 0xContract...2222 with the given calldata so we can plan our gas budget?"}],"resultDescription":"Returns the estimated gas units required to execute the transaction on Mantle, along with relevant fee data such as gas price and total estimated cost in the network's native token, enabling callers to budget and validate transactions before submission.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns a 400 error","Malformed calldata causes simulation failure or revert estimation","Transaction would revert on-chain causing an error response indicating execution failure","Network congestion or RPC node unavailability causes a timeout or 503","Missing required fields result in schema validation errors","Value field formatted incorrectly (not hex or decimal string) causes parsing error"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call gas estimate specifically on the Mantle L2 network without managing your own RPC node or paying for a subscription-based node provider. Prefer it over generic ETH gas estimators when the target chain is Mantle, and over full simulation endpoints when you only need fee estimation rather than full state trace output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:45:32.383Z","isFirstParty":false,"canonicalSlug":"phantom-api-mantle-gas-estimation-2938c948"}