# Avalanche Gas Fee History

> Avalanche Gas Fee History is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns eth_feeHistory data for Avalanche: per-block base fees, gas utilization ratios, and priority fee percentiles (p10/p50/p90) over the last 5–100 blocks, plus summary low/avg/high/next base fee stats.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/avax/gas-history?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-avalanche-gas-fee-history-3aae0b1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_alstgy_69c259H6qojNaq

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 agent-data-tools-revmesh2074-workers-dev-avalanche-gas-fee-history-3aae0b1d
```

Example prompt: Pull the Avalanche gas fee history for the last 30 blocks — I want to see whether base fees are rising or falling, how full blocks have been, and what priority fee percentiles look like so I can decide when and how to submit my transaction.

## When to prefer this

Use this endpoint when you need historical gas fee context on Avalanche to make informed transaction decisions — e.g., trend analysis, priority fee selection, or congestion monitoring. Use the companion avax_gas endpoint instead if you only need the single current gas price without historical window data.

## Known failure modes

- blocks parameter outside 5–100 range returns validation error
- RPC node unreachable or timeout returns 5xx error
- Requesting more blocks than available on chain returns partial or error response
- Invalid query parameter type returns 400 bad request

## How this service works

Gas price history on Avalanche (eth_feeHistory): base fee in gwei for each of the last N blocks (5-100, default 20), how full each block was, and the 10th, 50th and 90th percentile priority fees, with the low, average and high base fee over the window. Use to judge whether fees are rising, pick a priority fee or time a transaction; for the current price alone use avax_gas.

## Output

A JSON object containing: the chain name and ID, the block range (fromBlock/toBlock), a per-block array with block number, base fee in gwei, gas used ratio, and [p10, p50, p90] priority fees in gwei; plus a summary object with low/average/high/next/latest base fees in gwei and aggregate priority fee percentiles (p10/p50/p90).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "blocks": {
   "type": "integer",
   "description": "How many recent blocks, 5-100 (default 20)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "blocks": {
   "type": "number"
  },
  "chainId": {
   "type": "number"
  },
  "history": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "block": {
      "type": "number"
     },
     "baseFeeGwei": {
      "type": "number"
     },
     "gasUsedRatio": {
      "type": "number"
     },
     "priorityFeeGwei": {
      "type": "array",
      "items": {
       "type": "number"
      }
     }
    }
   }
  },
  "toBlock": {
   "type": "number"
  },
  "fromBlock": {
   "type": "number"
  },
  "baseFeeGwei": {
   "type": "object",
   "properties": {
    "low": {
     "type": "number"
    },
    "high": {
     "type": "number"
    },
    "next": {
     "type": "number"
    },
    "latest": {
     "type": "number"
    },
    "average": {
     "type": "number"
    }
   }
  },
  "priorityFeeGwei": {
   "type": "object",
   "properties": {
    "p10": {
     "type": "number"
    },
    "p50": {
     "type": "number"
    },
    "p90": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-avalanche-gas-fee-history-3aae0b1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
