{"uid":"cap_hmzq8qv9P4sVHHNqApB7V","slug":"agentutility-gas-fees-api-a4698ee8","name":"AgentUtility Gas Fees API","description":"Gas fees API / EIP-1559 transaction fee estimator / Base Ethereum Optimism Arbitrum gas tracker. Returns base fee, priority-fee tiers, maxFeePerGas, and USD cost estimates for common transactions.","url":"https://x402.agentutility.ai/gas-fees","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"chain":{"type":"string","enum":["base","ethereum","optimism","arbitrum","polygon"],"description":"EVM L1/L2 to read gas from. Default 'base'."}}}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"chain":{"type":"string"},"base_fee_gwei":{"type":"number"},"priority_fee_gwei":{"type":"object","properties":{"safe_low":{"type":"number"},"standard":{"type":"number"},"fast":{"type":"number"}}},"total_recommended_gwei":{"type":"number"},"block_number":{"type":"integer"},"eth_price_usd":{"type":"integer"},"cost_usd":{"type":"object","properties":{"transfer":{"type":"number"},"erc20_transfer":{"type":"number"},"uniswap_swap":{"type":"number"},"nft_mint":{"type":"number"}}},"timestamp":{"type":"string"}}}},"required":["type"]}},"required":["input"]},"responseSchema":{"type":"json","example":{"chain":"base","cost_usd":{"nft_mint":0.006,"transfer":0.0008,"uniswap_swap":0.004,"erc20_transfer":0.0012},"timestamp":"2026-05-06T22:00:00Z","block_number":27500000,"base_fee_gwei":0.005,"eth_price_usd":3500,"priority_fee_gwei":{"fast":0.002,"safe_low":0.001,"standard":0.001},"total_recommended_gwei":0.006}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HS_036Uu6lziGDdB9hn8j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time EIP-1559 gas fee estimates (base fee, priority tiers, maxFeePerGas) and USD cost estimates for Ethereum, Base, Optimism, and Arbitrum transactions.","exampleAgentPrompt":"What are the current gas fees on Base right now — give me the base fee, slow/standard/fast priority tiers, and the USD cost estimate for a standard ETH transfer.","exampleUseCases":[{"title":"Pre-swap gas cost check","prompt":"Before I do this token swap on Ethereum mainnet, can you check what the current gas fees are and tell me how much it'll cost in USD at the standard speed tier?"},{"title":"Cheapest L2 network picker","prompt":"I need to send a transaction soon — can you pull the current gas fees for Base, Optimism, and Arbitrum and tell me which one is cheapest right now?"},{"title":"Autonomous agent gas budgeting","prompt":"Check the current EIP-1559 gas prices on Base and tell me the maxFeePerGas for a fast transaction so I can decide whether to execute this on-chain action now or wait."}],"resultDescription":"Returns the current EIP-1559 gas parameters for the requested network, including the base fee (in Gwei), priority fee suggestions across slow/standard/fast tiers, maxFeePerGas values for each tier, and estimated USD costs for common transaction types such as ETH transfers and ERC-20 swaps.","failureModes":["Invalid or unsupported network name returns an error","Payment failure via x402 protocol results in 402 response and no data returned","Network RPC unavailability may cause stale or failed response","Highly volatile gas conditions may cause estimates to be outdated by the time a transaction is submitted"],"whenToPreferThis":"Choose this endpoint when an AI agent needs current, multi-tier EIP-1559 gas estimates with USD cost translation for Ethereum mainnet or major L2 networks (Base, Optimism, Arbitrum). Ideal for pre-transaction cost checks, gas budgeting, or deciding which network to use based on current fees. Prefer over generic blockchain RPC calls when you need structured priority tiers and USD estimates in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:36.610Z","isFirstParty":false}