# Avasis Ethereum EIP-1559 Fee Plan

> Avasis Ethereum EIP-1559 Fee Plan is a paid API for AI agents from agents.avasis.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-16).

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.

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/eth/fee-plan?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avasis-ethereum-eip-1559-fee-plan-5eb1b8e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TyAmLrwTPIxCuQCy70pP7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability avasis-ethereum-eip-1559-fee-plan-5eb1b8e0
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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)

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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) =
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avasis-ethereum-eip-1559-fee-plan-5eb1b8e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.avasis.ai](https://www.zero.xyz/host/agents.avasis.ai/llms.txt)
