{"uid":"cap_Zd_Rf-OlZuEWtBf0CY64L","slug":"agentstoolshub-gas-price-c6e742c8","name":"AgentsToolsHub Gas Price","description":"Fetch the live gas price from public RPC nodes on Base or Ethereum: wei per unit gas, converted to gwei, with a USD estimate for a standard 21,000-gas transfer using your own ETH price input. No API key needed. Use this when an agent needs to current gas price in gwei and USD, straight from the chain.","url":"https://agentstoolshub.com/api/v1/crypto/gas-price?utm_source=zero.xyz","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":["ethPriceUsd"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"Chain"},"ethPriceUsd":{"type":"number","description":"ETH price (USD)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_twIw7ttkhYfOUq8_lSflS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches live gas prices from Base or Ethereum public RPC nodes, returning wei, gwei, and a USD cost estimate for a standard 21,000-gas transfer.","exampleAgentPrompt":"What's the current gas price on Ethereum right now in gwei and USD — ETH is trading at $3,200?","exampleUseCases":[{"title":"Pre-transaction gas cost check","prompt":"Before I send this ETH transfer, what's the current gas price on Ethereum in gwei and what will it cost in USD? ETH is at $3,400 right now."},{"title":"Base network fee monitoring","prompt":"Check the live gas price on Base for me — ETH is $3,100 — I want to know the gwei price and roughly what a standard transfer would cost in dollars."},{"title":"Gas price comparison between chains","prompt":"What are the current gas prices on both Ethereum and Base? ETH is around $3,250 — give me gwei and USD cost for a normal transfer on each."}],"resultDescription":"Returns the current gas price fetched directly from public RPC nodes: the raw value in wei, the converted value in gwei, and a USD cost estimate for a standard 21,000-gas transfer computed using the caller-supplied ETH/USD price. No API key required.","failureModes":["RPC node unavailable or rate-limited — upstream connection error","Invalid or missing ethPriceUsd parameter — request fails validation","Unsupported chain value supplied — rejected by enum constraint","Network congestion may cause stale or delayed gas price readings","Payment of 0.002 USDC not completed — 402 response blocking access"],"whenToPreferThis":"Use this endpoint when you need a real-time, on-chain gas price without managing your own RPC infrastructure or API keys, and you want a ready-made USD cost estimate for a standard 21,000-gas transfer alongside the raw gwei figure. Ideal for agents that need quick gas checks on Base or Ethereum mainnet before deciding whether to execute a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:55.384Z","isFirstParty":false,"canonicalSlug":"agentstoolshub-gas-price-c6e742c8"}