{"uid":"cap_qPN7tdJsbSNn11GfCkdwc","slug":"phantom-api-starknet-gas-estimate-d9d1ee2c","name":"Phantom API — StarkNet Gas Estimate","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/starknet/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_0bSz20rw70kHLpDJxoHKm","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 StarkNet network before submission","exampleAgentPrompt":"Estimate the gas cost for a StarkNet transaction from my wallet 0xAbCd...1234 to contract 0x1111...aaaa with calldata 0x00dead and value 0 before I submit it.","exampleUseCases":[{"title":"Pre-flight gas check for StarkNet DeFi swap","prompt":"Before I execute this StarkNet swap to contract 0x04270219...dead calling entrypoint data 0x00swap00 from my wallet 0xMyWallet...beef, can you estimate how much gas it will cost so I can decide if it's worth it right now?"},{"title":"Budget gas fees for a StarkNet NFT mint","prompt":"I want to mint an NFT on StarkNet — the contract is 0xNFTContract...cafe, my address is 0xMyAddress...1337, data is 0x00mint, value is 0. What's the estimated gas fee so I can make sure I have enough funds?"},{"title":"Compare gas cost across multiple StarkNet calls","prompt":"Estimate the gas for this StarkNet transaction: from 0xSender...aaaa, to 0xReceiver...bbbb, data is 0x00transfer, value is 100. I want to see the fee before deciding whether to batch it or send it alone."}],"resultDescription":"Returns an estimated gas fee (in StarkNet native units) for the specified transaction parameters, allowing the caller to assess cost before actually broadcasting the transaction to the network.","failureModes":["Invalid or malformed 'to' address returns an error","Invalid calldata format causes a simulation failure","Unreachable StarkNet node results in a timeout or 503","Missing required fields returns a 400 bad request","Estimated gas may differ from actual gas if network conditions change between estimate and submission"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call gas estimate for a StarkNet transaction without running your own node. Ideal for agents that need to preflight transaction costs before committing, or for comparing fees across different contract interactions on StarkNet specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:30:31.138Z","isFirstParty":false,"canonicalSlug":"phantom-api-starknet-gas-estimate-d9d1ee2c"}