{"uid":"cap_MmMENr5fLD_1cZXIPjcTn","slug":"avasis-base-fee-plan-a7a144d6","name":"Avasis Base Fee Plan","description":"Base gas fee plan for ONE transaction ($0.02): give gas_limit (+ urgency low/normal/high/next_block, optional max_usd budget, calldata_bytes for the L1 fee) 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/base/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)"},"calldata_bytes":{"type":"integer","maximum":131072,"minimum":0,"description":"optional size of your unsigned transaction in bytes: prices the Base L1 data fee (charged on top of gas) from the GasPriceOracle and adds it to total_expected"}},"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":2.015e-7,"usd":0.000519971},"max_authorized":{"eth":3.38e-7,"usd":0.000872209},"total_expected":{"eth":2.02305e-7,"usd":0.000522048}},"tier":"standard","urgency":"normal","inclusion":{"blocks":[1,2],"seconds":[2,4]},"maxFeePerGas":{"gwei":0.0052},"maxPriorityFeePerGas":{"gwei":0.001}},"chain":"base","inputs":{"max_usd":null,"urgency":"normal","gas_limit":65000,"calldata_bytes":200},"market":{"block":{"number":37400000,"timestamp":1761739199,"ageSeconds":1,"gasUsedPct":14.2},"base_fee":{"gwei":0.0021},"priority":{"gwei":0.001,"basis":"node eth_maxPriorityFeePerGas"},"next_block":{"label":"balanced","change_pct":-0.0592,"base_fee_direction":"falling","next_base_fee_estimate":{"gwei":0.002099}},"observedAt":"2026-10-29T12:00:00.000Z"},"chainId":8453,"eth_usd":{"price":2580.5,"source":"chainlink ETH/USD aggregator on Base (latestRoundData)","available":true},"sources":["publicnode base rpc (via stream hub)","chainlink ETH/USD (Base feed)","Base GasPriceOracle (predeploy 0x42..0F)"],"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/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"}],"decision":{"tier":"standard","action":"send_now","reason":"standard tier for normal urgency: latest block 14.2% full vs 16.67% target, base fee falling (-0.0592% next block); expected $0.00052 for 65000 gas, typically 1-2 blocks (~2-4 s)","requested_tier":"standard"},"headline":"Base: standard tier (normal urgency) = maxFee 0.0052 gwei / tip 0.001 gwei, ~$0.00052 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":{"eth":8.04958e-10,"usd":0.00000207719,"bytes":200,"available":true,"applicable":true},"alternatives":[{"tier":"slow","blocks":[2,10],"urgency":"low","expected":{"eth":1.69e-7,"usd":0.000436104},"maxFeePerGas":{"gwei":0.002863}},{"tier":"fast","blocks":[1,1],"urgency":"high","expected":{"eth":2.34e-7,"usd":0.000603837},"maxFeePerGas":{"gwei":0.0057}},{"tier":"urgent","blocks":[1,1],"urgency":"next_block","expected":{"eth":2.665e-7,"usd":0.000687703},"maxFeePerGas":{"gwei":0.0083}}],"ready_to_sign":{"gas":"0xfde8","tier":"standard","type":"0x2","chainId":"0x2105","maxFeePerGas":"0x4f5880","maxPriorityFeePerGas":"0xf4240"}}},"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_7Z4OArITONHm7yPMZ810z","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) plus cost estimates and an actionable send/wait decision for a single transaction on the Base L2 network.","exampleAgentPrompt":"What gas fees should I use for a Base network ERC-20 transfer right now? My gas limit is 65000, I need normal urgency, and my calldata is about 200 bytes — give me the EIP-1559 fields to sign and tell me if I should send now or wait.","exampleUseCases":[{"title":"Optimal fee for urgent Base swap","prompt":"I'm about to submit a swap on Base and need it to land in the very next block — my gas limit is 180000 and calldata is 300 bytes. What maxFeePerGas and maxPriorityFeePerGas should I use, and what's the expected USD cost?"},{"title":"Budget-capped ERC-20 transfer","prompt":"I want to send an ERC-20 token on Base but I don't want to spend more than $0.01 in gas. My gas limit is 65000 with normal urgency — can you check if that's feasible right now and give me the cheapest fee tier that fits my budget?"},{"title":"Low-urgency ETH transfer fee check","prompt":"I'm sending ETH on Base and I'm fine waiting a few blocks for a lower fee. Gas limit is 21000, low urgency — what are the EIP-1559 fields I should sign and roughly how long will I be waiting for confirmation?"}],"resultDescription":"A JSON object containing: EIP-1559 fields (maxFeePerGas, maxPriorityFeePerGas in gwei and hex ready_to_sign), expected and max cost in both ETH and USD, estimated blocks and seconds to inclusion, the recommended tier (slow/standard/fast/urgent), alternative tiers for comparison, a send_now/downgrade/wait action decision with reasoning based on current block fill, live market data (current base fee, block number, next base fee estimate), ETH/USD price from Chainlink, and optionally the L1 data fee if calldata_bytes was supplied.","failureModes":["Upstream RPC or Chainlink feed down — returns 503, no charge applied","Invalid gas_limit outside 21000–30000000 range — validation error","max_usd too tight for all tiers — decision returns 'wait' with explanation","Missing required gas_limit defaults to 21000 (ETH transfer)","calldata_bytes not provided — L1 data fee component omitted from total"],"whenToPreferThis":"Use this endpoint when you need EIP-1559-ready fee fields specifically for the Base L2 network and want an actionable send/wait recommendation backed by live block data. Prefer this over generic gas APIs when you need USD cost estimates including the Base L1 data fee component, or when you have a USD budget constraint that should automatically select the best fee tier. It is cheaper ($0.02) and more Base-specific than the broader multi-chain EVM gas ops endpoint ($0.05).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:39:13.681Z","isFirstParty":false,"canonicalSlug":"avasis-base-fee-plan-a7a144d6"}