{"uid":"cap_XTWfg8faqb-kFDeviebtx","slug":"phantom-api-avalanche-gas-estimator-e786a8a7","name":"Phantom API – Avalanche 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/avalanche/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_dfiUZ9eZZMFTI6tkaV0oi","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 Avalanche network given transaction parameters","exampleAgentPrompt":"Estimate the gas needed for a transaction on Avalanche where I'm sending from 0xAbC...123 to the contract at 0xDeF...456 with calldata 0xa9059cbb... and no AVAX value attached.","exampleUseCases":[{"title":"DeFi swap gas pre-check","prompt":"Before I submit this Avalanche DEX swap from my wallet 0xAbC...123 to the router contract 0xDeF...456 with this calldata 0x38ed1739..., can you estimate how much gas it'll need so I don't underprice it?"},{"title":"Smart contract deployment cost check","prompt":"I want to deploy a contract on Avalanche — can you estimate the gas for the transaction where from is 0xMyWallet, to is null, and the data is the bytecode 0x608060...?"},{"title":"Token transfer fee estimation","prompt":"How much gas will it cost to call the transfer function on the USDC contract at 0xB97EF9...on Avalanche if I send from 0xMyAddr with calldata encoding transfer to 0xRecipient for 100 USDC?"}],"resultDescription":"Returns a gas estimate (in gas units) for the described Avalanche transaction, enabling callers to set appropriate gas limits before broadcasting the transaction to the network.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed or non-hex 'data' field causes a parse error","Simulated transaction reverts on-chain (e.g. insufficient token balance) may return a revert error rather than a gas estimate","Avalanche RPC node unavailable causes a 5xx or timeout","Missing required fields may result in a 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call gas estimate on the Avalanche network without managing your own RPC node or API keys. Prefer it for pre-flight checks before submitting transactions, DeFi automation agents that need cost awareness, or any workflow that requires Avalanche-specific gas computation across 57+ supported networks via a single infrastructure provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:03:49.772Z","isFirstParty":false}