{"uid":"cap_oChwqpmQUTl5pRMcxx27x","slug":"phantom-api-aptos-gas-estimator-0ee2172b","name":"Phantom API – Aptos 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/aptos/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_ZUMofCFJsY9P0dQ5yTL7P","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 fees for a transaction on the Aptos blockchain given sender, recipient, value, and calldata.","exampleAgentPrompt":"Estimate the gas fee for an Aptos transaction from address 0xabc...123 to 0xdef...456, sending 1 APT with calldata 0x00.","exampleUseCases":[{"title":"Pre-flight cost check before APT transfer","prompt":"Before I send 5 APT from my wallet 0xabc...111 to 0xdef...222 on Aptos, can you estimate how much gas I'll need to pay?"},{"title":"Smart contract interaction cost simulation","prompt":"I'm about to call an Aptos smart contract at address 0xcontract...999 with this calldata 0xdeadbeef — from my wallet 0xmywallet...333. What's the estimated gas fee?"},{"title":"Budget gas costs for DeFi automation","prompt":"I'm building an Aptos DeFi bot and need to know the expected gas cost for swaps sent from 0xbot...777 to 0xpool...888 with value 10 APT and data 0x1234. Can you give me a gas estimate?"}],"resultDescription":"Returns an estimated gas fee for the described Aptos transaction, allowing callers to budget network costs before submitting the transaction on-chain.","failureModes":["Invalid or malformed Aptos address returns an error response","Missing required fields (e.g. no sender or recipient) may cause a 400 bad request","Aptos RPC node unavailability may result in a timeout or 503 error","Unsupported transaction data encoding may return an estimation error","Payment of $0.01 USDC via x402 not provided or rejected results in a 402 response"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call gas estimate for Aptos transactions without running your own Aptos node or managing RPC infrastructure. It's ideal for agents, bots, or wallets that need real-time fee preflight checks across the Aptos network with minimal setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:49:57.181Z","isFirstParty":false}