{"uid":"cap_DNj-7aV0ObWS6VOtTSy48","slug":"phantom-api-hyperliquid-gas-estimator-45890900","name":"Phantom API — Hyperliquid 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/hyperliquid/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_vG3qD9qIPF8uRBf7vI44F","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 costs for a transaction on the Hyperliquid network before submission","exampleAgentPrompt":"Before I submit this Hyperliquid transaction, can you estimate the gas cost? The sender is 0xAbc123..., recipient is 0xDef456..., with calldata 0x095ea7b3... and value 0x0.","exampleUseCases":[{"title":"Pre-trade gas budget check","prompt":"I'm about to place a large order via a Hyperliquid smart contract — can you estimate the gas cost first? Sender is 0xMySender, recipient contract is 0xHLContract, calldata is 0xabcdef, value is 0x0."},{"title":"DeFi bot cost forecasting","prompt":"My trading bot needs to know the gas estimate for a Hyperliquid swap before it executes — the from address is 0xBotWallet, to is 0xSwapRouter, data is 0x38ed1739..., and value is 0x0."},{"title":"Smart contract deployment cost estimate","prompt":"How much gas will it take to call this Hyperliquid contract? From 0xDeployer, to 0xTargetContract, calldata 0x60806040..., value is 0x0."}],"resultDescription":"Returns an estimated gas amount (in gas units) required to execute the specified transaction on Hyperliquid, allowing callers to budget fees and validate transactions before on-chain submission.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed hex calldata in 'data' field causes a parsing error","Network unavailability or Hyperliquid RPC downtime returns a timeout or 503","Transaction that would revert on-chain may return an execution revert error","Missing required fields (e.g. 'to') may return a 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a gas estimate specifically for Hyperliquid network transactions before submission. Prefer this over generic EVM gas estimators when operating on Hyperliquid's L1 or its EVM-compatible layer, especially when paying per call is acceptable and you need fast, on-demand estimates without setting up your own RPC node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:47:20.727Z","isFirstParty":false,"canonicalSlug":"phantom-api-hyperliquid-gas-estimator-45890900"}