{"uid":"cap_yZGkHkX6D4ZvpL63qTOyE","slug":"phantom-api-humanity-gas-estimate-2295de5b","name":"Phantom API — Humanity 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/humanity/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_XB61T49GKZg1oAqaiDDrk","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 Humanity blockchain network before it is submitted","exampleAgentPrompt":"Before I send this transaction on the Humanity network — to address 0xABC...123, from 0xDEF...456, with calldata 0x095ea7b3... and value 0 — can you estimate how much gas it'll need?","exampleUseCases":[{"title":"Pre-flight DeFi transaction cost check","prompt":"I'm about to call a DeFi swap contract on the Humanity network from 0xSender...111 to 0xRouter...999 with calldata 0x38ed1739... and no ETH value attached — estimate the gas before I commit."},{"title":"NFT mint gas estimation","prompt":"Can you estimate the gas cost for minting an NFT? The contract is at 0xNFT...456, I'm calling from 0xMy...789, the mint calldata is 0x40d097c3..., and the value is 0."},{"title":"Safe wallet budget planning","prompt":"I manage a multisig and want to know the gas cost before approving a transaction: sender is 0xMultisig...321, recipient is 0xTarget...654, calldata is 0xa9059cbb..., value is 1000000000000000."}],"resultDescription":"Returns an estimated gas amount (in gas units) needed to execute the specified transaction on the Humanity network, allowing callers to budget fees and validate feasibility before broadcasting.","failureModes":["Invalid or malformed address in 'to' or 'from' fields returns an error","Malformed calldata in 'data' field causes estimation failure","Transaction that would revert on-chain returns execution revert error","Unsupported network or node unavailability returns 503 or timeout","Missing required fields may return 400 bad request","Value field not in expected hex or decimal format causes parse error"],"whenToPreferThis":"Use this endpoint when you need to estimate gas for a transaction specifically on the Humanity network before submission. Prefer this over generic Ethereum gas estimators when you are building on or interacting with the Humanity chain. Ideal for pre-flight checks in DeFi, NFT minting, token transfers, or any smart contract interaction where you want to avoid failed transactions and budget fees accurately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:51:10.892Z","isFirstParty":false}