{"uid":"cap_cqCiHyD6BWFf7bJIfOxOu","slug":"phantom-api-solana-gas-fee-estimator-fbe59d76","name":"Phantom API — Solana Gas Fee 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/solana/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_h6yFoHS1mb5-mIObpfv7G","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/transaction fee for a Solana transaction given sender, recipient, data, and value fields","exampleAgentPrompt":"Estimate the Solana gas fee for a transaction from wallet 7xKf...abc to wallet 9pQr...xyz with no data payload and a value of 1.5 SOL.","exampleUseCases":[{"title":"Pre-flight cost check before SOL transfer","prompt":"Before I send 2 SOL from my wallet 7xKf1234 to 9pQr5678, can you estimate what the network fee will be so I know the total cost?"},{"title":"Smart contract call fee estimation","prompt":"I'm about to call a Solana smart contract — can you estimate the gas fee for a transaction from address AAAbbb to contract CCCddd with this data payload '0xabcdef' and zero SOL value?"},{"title":"DeFi trade fee budgeting","prompt":"I want to know how much in fees I'll pay on Solana before executing my swap — estimate the transaction cost from my wallet 5xLm9876 to the DEX address 3kPz4321 with value 0.5 SOL."}],"resultDescription":"Returns an estimated gas fee (likely in lamports or SOL) for the described Solana transaction, allowing the caller to budget transaction costs before submitting on-chain.","failureModes":["Invalid or malformed wallet address in 'from' or 'to' fields returns an error","Malformed 'data' field (non-hex or wrong format) may cause estimation failure","Network congestion or RPC unavailability may return a timeout or 503","Missing required fields may return a 400 bad request","Estimation may be inaccurate if Solana network fee schedule has recently changed"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call Solana gas fee estimate without running a full RPC node or subscribing to a monthly plan. Ideal for agents that need on-demand cost checks before executing Solana transactions across 57+ supported networks, especially when cost predictability and low per-call pricing ($0.01 USDC) matters more than bulk throughput.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:04.563Z","isFirstParty":false}