{"uid":"cap_qsrWTqRJPyuoi9O6YxC3O","slug":"phantom-api-ink-network-gas-estimator-29c048be","name":"Phantom API — Ink 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/ink/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_cDoVoM9dU4g8m39M2NHCt","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 Ink blockchain network before submission","exampleAgentPrompt":"Before I submit this transaction on the Ink network, can you estimate how much gas it will cost? The sender is 0xAbC123..., recipient is 0xDeF456..., with calldata 0xa9059cbb... and a value of 0.01 ETH.","exampleUseCases":[{"title":"Pre-flight gas check for token transfer","prompt":"Before I send 50 USDC from 0xSenderAddress to 0xRecipientAddress on the Ink network, estimate how much gas this transfer will use so I can decide if it's worth sending now."},{"title":"Smart contract call cost estimation","prompt":"I want to call a smart contract on Ink — the contract is at 0xContractAddress, my wallet is 0xMyWallet, and the encoded calldata is 0xa9059cbb000...can you estimate the gas cost before I actually submit it?"},{"title":"DeFi trade gas budgeting","prompt":"I'm about to execute a swap on a DEX deployed on the Ink network. Can you estimate the gas for this transaction — from 0xTraderWallet, to 0xDexRouter, with this calldata 0x38ed1739..., and no ETH value — so I can budget my fees?"}],"resultDescription":"Returns a gas estimate (in gas units) for the described transaction on the Ink network, allowing the caller to understand the likely cost before submitting the transaction on-chain.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed or invalid hex calldata in 'data' field causes simulation failure","Transaction would revert on-chain causing estimation failure","Network or RPC node unavailability results in timeout or 503 error","Payment not included or insufficient USDC causes 402 rejection"],"whenToPreferThis":"Choose this endpoint when you need a gas estimate specifically for the Ink EVM-compatible network before committing a transaction. Useful for pre-flight checks to avoid out-of-gas failures, to budget transaction fees, or to decide whether current gas conditions make a transaction economical. Prefer this over generic Ethereum gas estimators when your transaction targets the Ink chain specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:08.096Z","isFirstParty":false}