{"uid":"cap_YywOqNfoIG3DjXs2UUSmG","slug":"agenticfi-gas-estimation-api-36f98ffd","name":"AgenticFi Gas Estimation API","description":"Gas estimate for a transaction type - transfer, swap, bridge, mint, etc.","url":"https://defi-api.agenticfi.wtf/api/gas/estimate","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain","txType"],"properties":{"chain":{"type":"string","title":"chain (required)","description":"Required. Chain name Examples: base, ethereum, arbitrum"},"txType":{"type":"string","title":"txType (required)","description":"Required. Transaction type (transfer, erc20_transfer, swap_simple, bridge, nft_mint, lending_deposit, etc.) Examples: swap_simple, transfer"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"chain":"base","txType":"swap_simple"}}},"response":{"unit":"native token","chain":"base","txType":"swap_simple","estimatedGas":150000,"gasPriceGwei":"0.0060","gasCostNative":"0.00000090"}},"exampleRequest":{"chain":"base","txType":"swap_simple"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SS_gjSO6lMYfllmYWL2BM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 specified transaction type on a given blockchain network","exampleAgentPrompt":"What's the estimated gas cost for a simple token swap on Base right now?","exampleUseCases":null,"resultDescription":"Returns a gas estimate for the specified transaction type on the given chain, including fee data useful for pre-flight cost analysis before submitting an on-chain transaction.","failureModes":["Missing required 'chain' query parameter returns validation error","Missing required 'txType' query parameter returns validation error","Unsupported chain name returns error or empty result","Unsupported txType value returns error","Payment not provided or insufficient USDC returns 402 payment required","Network or RPC unavailability may cause timeout or error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to estimate gas costs before executing a DeFi transaction on Base, Ethereum, Arbitrum, or other supported chains — especially useful for pre-flight checks before swaps, bridges, NFT mints, or lending deposits to avoid failed transactions due to insufficient gas.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:38.851Z","isFirstParty":false}