# Avasis Base Fee Plan

> Avasis Base 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-23).

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.

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/base/fee-plan?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avasis-base-fee-plan-a7a144d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MmMENr5fLD_1cZXIPjcTn

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-base-fee-plan-a7a144d6
```

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

## When to prefer this

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

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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)"
      },
      "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": "ob
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avasis-base-fee-plan-a7a144d6/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)
