{"uid":"cap_d_fHkg5_TG2BcqtFObBIP","slug":"agentutility-gas-api-eip-1559-fee-estimator-b9dd474b","name":"AgentUtility Gas API — EIP-1559 Fee Estimator","description":"Gas API / blockchain gas fee estimator / EIP-1559 fee tiers. Returns base fee, safe-low, standard, and fast priority/max fees, plus USD tx-cost estimates for Base, Ethereum, Optimism, and Arbitrum.","url":"https://x402.agentutility.ai/gas-api","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{"chain":{"enum":["base","ethereum","optimism","arbitrum","polygon"],"type":"string","description":"EVM L1/L2 to read gas from. Default 'base'."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"chain":{"type":"string"},"cost_usd":{"type":"object","properties":{"nft_mint":{"type":"number"},"transfer":{"type":"number"},"uniswap_swap":{"type":"number"},"erc20_transfer":{"type":"number"}}},"timestamp":{"type":"string"},"block_number":{"type":"integer"},"base_fee_gwei":{"type":"number"},"eth_price_usd":{"type":"integer"},"priority_fee_gwei":{"type":"object","properties":{"fast":{"type":"number"},"safe_low":{"type":"number"},"standard":{"type":"number"}}},"total_recommended_gwei":{"type":"number"}}}}}}},"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_RaLnPRg2pvHKPjZDjlLSY","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 tiers (safe-low, standard, fast) plus USD transaction cost estimates for Base, Ethereum, Optimism, and Arbitrum","exampleAgentPrompt":"What are the current EIP-1559 gas fee tiers on Ethereum — give me the safe-low, standard, and fast priority fees along with USD cost estimates so I can decide when to submit my transaction.","exampleUseCases":[{"title":"Time a DeFi swap on Ethereum","prompt":"Check the current gas fees on Ethereum and tell me whether now is a good time to submit my swap — show me the safe-low, standard, and fast fee tiers and what each would cost in USD."},{"title":"Pick cheapest L2 for token transfer","prompt":"I need to send tokens and want to spend as little as possible on gas — can you pull the current fee estimates for Base, Optimism, and Arbitrum so I can pick the cheapest chain right now?"},{"title":"Pre-flight gas check for agent transaction","prompt":"Before my agent submits this contract call on Base, get the current EIP-1559 base fee and fast priority fee so I can set an appropriate maxFeePerGas and know the expected USD cost."}],"resultDescription":"Returns the current EIP-1559 gas parameters for the requested network(s): base fee, safe-low / standard / fast priority fees (tip), max fee per gas values, and estimated USD transaction costs for a standard transfer — allowing agents or users to choose an appropriate fee tier before submitting a transaction.","failureModes":["Unsupported network name returns an error or empty result","Network RPC unavailability may cause stale or missing fee data","High blockchain volatility may cause returned fees to be outdated within seconds","Payment failure (x402 USDC not settled) returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when an agent needs to programmatically estimate gas costs before submitting any on-chain transaction on Base, Ethereum, Optimism, or Arbitrum — especially when USD cost awareness is needed alongside raw gwei values. Prefer over block-explorer scraping or manual RPC calls when operating in an agentic, MCP-callable context with x402 micropayment settlement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:19.949Z","isFirstParty":false}