{"uid":"cap_5bv7DpTJMTgZwl_s4yulM","slug":"avasis-evm-gas-ops-ethereum-base-gas-fee-oracle-668fe20b","name":"Avasis EVM Gas Ops — Ethereum + Base Gas Fee Oracle","description":"Ethereum gas + Base gas in one call (evm gas ops, $0.05) for agents that send transactions. Per chain: base fee, priority fee, four EIP-1559 fee tiers (slow/standard/fast/urgent: maxFeePerGas + maxPriorityFeePerGas), next-block base-fee estimate + congestion, ETH + USD cost of a transfer / ERC-20 transfer / approve / swap and of your gas_limit (Chainlink ETH/USD), Base-vs-Ethereum comparison, a pick with its reason. Free live sample /v1/evm/gas-ops/sample. Upstream down 503, never charged.","url":"https://agents.avasis.ai/v1/evm/gas-ops?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","properties":{"gas_limit":{"type":"integer","maximum":30000000,"minimum":21000,"description":"gas units of YOUR transaction (default 21000 = ETH transfer; ~65000 ERC-20 transfer, ~180000 swap): priced per tier in ETH and USD under costs.your_tx"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["kit","headline","ethereum","base","eth_usd"],"properties":{"kit":{"type":"string"},"base":{"type":"object"},"solana":{"type":"object"},"compare":{"type":"object"},"eth_usd":{"type":"object"},"sources":{"type":"array"},"ethereum":{"type":"object"},"headline":{"type":"string"},"gas_limit":{"type":"integer"},"how_to_use":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"kit":"evm-gas-ops-1","base":{"seq":2411,"gwei":{"baseFee":0.0021,"gasPrice":0.0031,"maxPriorityFee":0.001,"suggestedMaxFee":0.0052},"pick":{"tier":"standard"},"ageMs":380,"block":{"number":37400000,"timestamp":1761739199,"ageSeconds":1,"gasUsedPct":14.2},"chain":"base","costs":{"ops":[{"op":"eth_transfer","gas":21000,"expected":{"eth":6.51e-8,"usd":0.000167991}}],"note":"(+ erc20_transfer, erc20_approve, dex_swap, max_authorized, wei in the paid body)","your_tx":{"gas":21000,"expected":{"eth":6.51e-8,"usd":0.000167991}},"per_gas_now":{"gwei":0.0031}},"stale":false,"tiers":[{"tier":"slow","maxFeePerGas":{"gwei":0.002863},"maxPriorityFeePerGas":{"gwei":0.0005}},{"tier":"standard","maxFeePerGas":{"gwei":0.0052},"maxPriorityFeePerGas":{"gwei":0.001}},{"tier":"fast","maxFeePerGas":{"gwei":0.0057},"maxPriorityFeePerGas":{"gwei":0.0015}},{"tier":"urgent","maxFeePerGas":{"gwei":0.0083},"maxPriorityFeePerGas":{"gwei":0.002}}],"chainId":8453,"priority":{"gwei":0.001,"basis":"node eth_maxPriorityFeePerGas"},"available":true,"next_block":{"label":"balanced","eip1559":{"elasticity":6,"denominator":250,"max_change_pct":0.4},"vs_target":0.852,"change_pct":-0.0592,"base_fee_direction":"falling","next_base_fee_estimate":{"gwei":0.002099}},"observedAt":"2026-10-29T12:00:00.000Z"},"solana":{"slot":{"available":true,"slotProcessed":462900001},"sol_usd":{"price":100.08,"available":true},"priority_fee":{"available":true,"suggested":{"low":1000,"high":50000,"medium":10000,"veryHigh":200000}}},"compare":{"cheaper":"base","gas_limit":21000,"ethereum_over_base":454.8},"eth_usd":{"price":2580.5,"source":"chainlink ETH/USD aggregator on Base (latestRoundData)","available":true},"sources":["publicnode ethereum rpc (via stream hub)","publicnode base rpc (via stream hub)","chainlink ETH/USD (Base feed)","publicnode solana rpc (via stream hub)"],"also_try":[{"url":"https://agents.avasis.ai/v1/base/tx-precheck","what":"Base tx precheck: simulate YOUR unsigned transaction before you sign (would it revert + reason, gas in USD, every transfer, approval exposure, counterparty risk): SIGN / CAUTION / BLOCK","price_usd":"0.02","free_sample":"https://agents.avasis.ai/v1/evm/tx-precheck/sample"},{"url":"https://agents.avasis.ai/v1/base/multi-balance","what":"Base wallet multi-balance: ETH + USDC + up to 20 ERC-20s in one call, USD totals, and can this wallet pay the gas you just priced","price_usd":"0.02","free_sample":"https://agents.avasis.ai/v1/evm/multi-balance/sample"}],"ethereum":{"seq":812,"gwei":{"baseFee":0.41,"gasPrice":1.41,"maxPriorityFee":1,"suggestedMaxFee":1.82},"pick":{"tier":"standard"},"ageMs":420,"block":{"number":23700000,"timestamp":1761739195,"ageSeconds":5,"gasUsedPct":46.3},"chain":"ethereum","costs":{"ops":[{"op":"eth_transfer","gas":21000,"expected":{"eth":0.00002961,"usd":0.0764086}}],"note":"(+ erc20_transfer, erc20_approve, dex_swap, max_authorized, wei in the paid body)","your_tx":{"gas":21000,"expected":{"eth":0.00002961,"usd":0.0764086}},"per_gas_now":{"gwei":1.41}},"stale":false,"tiers":[{"tier":"slow","maxFeePerGas":{"gwei":0.96125},"maxPriorityFeePerGas":{"gwei":0.5}},{"tier":"standard","maxFeePerGas":{"gwei":1.82},"maxPriorityFeePerGas":{"gwei":1}},{"tier":"fast","maxFeePerGas":{"gwei":2.32},"maxPriorityFeePerGas":{"gwei":1.5}},{"tier":"urgent","maxFeePerGas":{"gwei":3.23},"maxPriorityFeePerGas":{"gwei":2}}],"chainId":1,"priority":{"gwei":1,"basis":"node eth_maxPriorityFeePerGas"},"available":true,"next_block":{"label":"balanced","eip1559":{"elasticity":2,"denominator":8,"max_change_pct":12.5},"vs_target":0.926,"change_pct":-0.925,"base_fee_direction":"falling","next_base_fee_estimate":{"gwei":0.406208}},"observedAt":"2026-10-29T12:00:00.000Z"},"headline":"Ethereum base fee 0.41 gwei, balanced (falling), transfer ~$0.076 · Base 0.0021 gwei, transfer ~$0.00017 · ETH $2580.5 · Base 455x cheaper for 21000 gas right now","gas_limit":21000,"computedAt":"2026-10-29T12:00:00.500Z","how_to_use":["Type-2 (EIP-1559) transaction: set maxFeePerGas and maxPriorityFeePerGas from the tier you choose (tiers[]); pick.tier is our deterministic suggestion with its reason."]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O-Y2jh7I7T6xIZGHI9Hp0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a unified gas fee kit for Ethereum and Base in one call: EIP-1559 fee tiers, USD cost estimates for common transactions, next-block base fee forecast, congestion level, and a recommended chain/tier pick.","exampleAgentPrompt":"What are the current gas fees on Ethereum and Base right now? I want to know all four speed tiers, the next-block base fee, how congested the network is, and how much a swap (gas limit 180000) would cost in USD — and which chain you'd recommend I use.","exampleUseCases":[{"title":"Pre-trade gas cost check for a DeFi swap","prompt":"Before I execute this swap on Ethereum, tell me how much gas I'll pay at the fast tier for a swap transaction — use a gas limit of 180000 — and whether I'd save money doing it on Base instead."},{"title":"Wallet app showing live gas to users","prompt":"Fetch the current Ethereum and Base gas fees for all four speed tiers and give me the ETH and USD cost of a standard ERC-20 transfer right now so I can display it to my users."},{"title":"Autonomous agent deciding when and where to transact","prompt":"Check current network congestion and gas prices on both Ethereum and Base, then tell me which chain and which fee tier you'd recommend for my next transaction and why."}],"resultDescription":"A JSON object containing per-chain data for both Ethereum and Base: current base fee, priority fee, four EIP-1559 tiers (slow/standard/fast/urgent) each with maxFeePerGas and maxPriorityFeePerGas, next-block base fee estimate, congestion level, USD and ETH costs for ETH transfer / ERC-20 transfer / approve / swap and for the caller's custom gas_limit, a Base-vs-Ethereum comparison, a recommended chain+tier with a stated reason, current ETH/USD price from Chainlink, and a headline summary string.","failureModes":["503 returned when upstream (node provider) is unavailable — caller is never charged in this case","Invalid gas_limit outside allowed range (21000–30000000) results in a validation error","Network timeouts if underlying EVM RPC nodes are slow or degraded","Missing or stale Chainlink ETH/USD price may affect USD cost accuracy"],"whenToPreferThis":"Choose this endpoint when an agent needs a comprehensive, multi-chain EVM gas snapshot in a single call rather than querying separate RPC endpoints or gas APIs. It is especially useful when the agent must decide between Base and Ethereum mainnet for cost efficiency, needs USD-denominated cost estimates for specific transaction types, or needs all EIP-1559 tiers at once. At $0.05 per call it is cost-effective for autonomous agents executing or preparing transactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:23.196Z","isFirstParty":false,"canonicalSlug":"avasis-evm-gas-ops-ethereum-base-gas-fee-oracle-668fe20b"}