{"uid":"cap_TyAmLrwTPIxCuQCy70pP7","slug":"avasis-ethereum-eip-1559-fee-plan-5eb1b8e0","name":"Avasis Ethereum EIP-1559 Fee Plan","description":"Ethereum gas fee plan for ONE transaction ($0.02): give gas_limit (+ urgency low/normal/high/next_block, optional max_usd budget) and get the EIP-1559 fields to sign (maxFeePerGas, maxPriorityFeePerGas, hex ready_to_sign), expected + max cost in ETH + USD, blocks to inclusion, the other tiers, and a send_now / downgrade / wait decision with its reason from the latest block's fill. Free live sample /v1/evm/fee-plan/sample. Upstream down 503, never charged.","url":"https://agents.avasis.ai/v1/eth/fee-plan?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":{"max_usd":{"type":"number","maximum":100000,"minimum":0.000001,"description":"optional USD gas budget for this transaction: the plan downgrades to the best tier that fits, or says wait when even the slow tier is above it"},"urgency":{"enum":["low","normal","high","next_block"],"type":"string","description":"low = may wait a few blocks (slow tier), normal = next block or two (default, standard), high = busy blocks (fast), next_block = must land in the very next block (urgent)"},"gas_limit":{"type":"integer","maximum":30000000,"minimum":21000,"description":"gas units of YOUR transaction (default 21000 = ETH transfer; ~65000 ERC-20 transfer, ~46000 approve, ~180000 swap)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["kit","chain","chainId","headline","decision","plan","ready_to_sign","market","eth_usd"],"properties":{"kit":{"type":"string"},"plan":{"type":"object"},"chain":{"type":"string"},"inputs":{"type":"object"},"market":{"type":"object"},"chainId":{"type":"integer"},"eth_usd":{"type":"object"},"sources":{"type":"array"},"decision":{"type":"object"},"headline":{"type":"string"},"how_to_use":{"type":"array"},"l1_data_fee":{"type":"object"},"alternatives":{"type":"array"},"ready_to_sign":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"kit":"evm-fee-plan-1","plan":{"cost":{"gas":65000,"expected":{"eth":0.00009165,"usd":0.236503},"max_authorized":{"eth":0.0001183,"usd":0.305273}},"tier":"standard","urgency":"normal","inclusion":{"blocks":[1,2],"seconds":[12,24]},"maxFeePerGas":{"gwei":1.82},"maxPriorityFeePerGas":{"gwei":1}},"chain":"ethereum","inputs":{"max_usd":null,"urgency":"normal","gas_limit":65000,"calldata_bytes":null},"market":{"block":{"number":23700000,"timestamp":1761739195,"ageSeconds":5,"gasUsedPct":46.3},"base_fee":{"gwei":0.41},"priority":{"gwei":1,"basis":"node eth_maxPriorityFeePerGas"},"next_block":{"label":"balanced","change_pct":-0.925,"base_fee_direction":"falling","next_base_fee_estimate":{"gwei":0.406208}},"observedAt":"2026-10-29T12:00:00.000Z"},"chainId":1,"eth_usd":{"price":2580.5,"source":"chainlink ETH/USD aggregator on Base (latestRoundData)","available":true},"sources":["publicnode ethereum rpc (via stream hub)","chainlink ETH/USD (Base feed)"],"also_try":[{"url":"https://agents.avasis.ai/v1/evm/gas-ops","what":"EVM gas ops kit: Ethereum gas + Base gas fee tiers (slow/standard/fast/urgent), EIP-1559 next base fee, USD cost per tx and for your gas_limit, Base-vs-Ethereum pick, plus Solana slot / priority fees / SOL-USD; one shot, $0.05","price_usd":"0.05","free_sample":"https://agents.avasis.ai/v1/evm/gas-ops/sample"},{"url":"https://agents.avasis.ai/v1/eth/tx-precheck","what":"Ethereum 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"}],"decision":{"tier":"standard","action":"send_now","reason":"standard tier for normal urgency: latest block 46.3% full vs 50% target, base fee falling (-0.925% next block); expected $0.237 for 65000 gas, typically 1-2 blocks (~12-24 s)","requested_tier":"standard"},"headline":"Ethereum: standard tier (normal urgency) = maxFee 1.82 gwei / tip 1 gwei, ~$0.237 for 65000 gas, ~1-2 blocks · send now","computedAt":"2026-10-29T12:00:00.500Z","how_to_use":["Type-2 (EIP-1559) transaction: copy ready_to_sign.maxFeePerGas and maxPriorityFeePerGas (hex wei) into your transaction with your to / value / data / nonce; decision.action says send_now, downgrade (a cheaper tier fits max_usd) or wait (re-quote after recheck_in)."],"l1_data_fee":{"available":false,"applicable":false},"alternatives":[{"tier":"slow","blocks":[2,10],"urgency":"low","expected":{"eth":0.00005915,"usd":0.152637},"maxFeePerGas":{"gwei":0.96125}},{"tier":"fast","blocks":[1,1],"urgency":"high","expected":{"eth":0.00012415,"usd":0.320369},"maxFeePerGas":{"gwei":2.32}},{"tier":"urgent","blocks":[1,1],"urgency":"next_block","expected":{"eth":0.00015665,"usd":0.404235},"maxFeePerGas":{"gwei":3.23}}],"ready_to_sign":{"gas":"0xfde8","tier":"standard","type":"0x2","chainId":"0x1","maxFeePerGas":"0x6c7aff00","maxPriorityFeePerGas":"0x3b9aca00"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.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_gL2G3yPa7I7kfYafpNU0D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns EIP-1559 gas fee fields (maxFeePerGas, maxPriorityFeePerGas) with cost estimates, inclusion timing, tier comparison, and a send_now/downgrade/wait decision for a single Ethereum transaction.","exampleAgentPrompt":"What gas fees should I set to send an ERC-20 token transfer on Ethereum — my gas limit is 65000, I need normal urgency, and I want the EIP-1559 fields ready to sign along with the expected cost in USD.","exampleUseCases":[{"title":"Budget-capped ETH transfer","prompt":"I want to send ETH to another wallet but I don't want to spend more than $0.50 on gas — give me the EIP-1559 fee fields for a 21000 gas limit transaction and tell me whether I should send now or wait."},{"title":"Urgent DEX swap gas plan","prompt":"I need to get my Uniswap swap into the very next Ethereum block — my gas limit is 180000. Give me the maxFeePerGas and maxPriorityFeePerGas I should sign with and tell me what it'll cost in USD."},{"title":"Agent auto-sending ERC-20 approval","prompt":"Before I sign an ERC-20 approve transaction with 46000 gas, check the current Ethereum gas conditions and tell me which tier makes sense — low, normal, or high — and what the max cost in ETH and USD would be."}],"resultDescription":"A JSON object containing the recommended EIP-1559 fields (maxFeePerGas and maxPriorityFeePerGas in gwei and hex), expected and max-authorized cost in ETH and USD, estimated blocks and seconds to inclusion, the full tier comparison (slow/standard/fast/urgent), a send_now/downgrade/wait action decision with reason, current block data, base fee direction, and ETH/USD price source.","failureModes":["Upstream Ethereum RPC or Chainlink feed down returns 503 (never charged)","Invalid gas_limit outside 21000–30000000 range returns validation error","Invalid urgency enum value returns 400 bad request","max_usd budget too low for any tier returns a 'wait' decision rather than an error","Missing required gas_limit defaults to 21000 (ETH transfer)"],"whenToPreferThis":"Use this endpoint when an AI agent needs to construct and sign an Ethereum transaction and requires accurate EIP-1559 fee fields with a concrete send/wait recommendation. Prefer it over generic gas trackers when you need hex-ready signing fields, USD cost ceilings, and an actionable tier decision in a single call. It is especially valuable for agent-driven workflows that must respect gas budgets or latency constraints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:38:55.416Z","isFirstParty":false,"canonicalSlug":"avasis-ethereum-eip-1559-fee-plan-5eb1b8e0"}