# Vextorium EVM Fee History (eth_feeHistory)

> Vextorium EVM Fee History (eth_feeHistory) is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-16).

Returns EVM gas fee history for the last N blocks on 12 supported chains, including base fees, gas usage percentiles, and priority tip recommendations for fast inclusion.

## Facts

- Endpoint: POST https://api.vextorium.com/gas-historial-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-evm-fee-history-eth-feehistory-bc719ca1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DxdDuCaqS4IP9tvwdcN1s

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 vextorium-evm-fee-history-eth-feehistory-bc719ca1 -d '<json body>'
```

Example prompt: What are the gas fees on Base for the last 10 blocks? I need the base fee trend, gas usage, and a tip recommendation so I know what priority fee to set for a fast transaction.

## When to prefer this

Choose this endpoint when you need detailed, multi-block EVM gas fee history with percentile breakdowns and an actionable tip recommendation across 12 supported chains. It is ideal for agents that need to programmatically decide what gas price to set before submitting a transaction, or for dashboards monitoring gas trends. Prefer it over generic RPC calls when you want the P10/P50/P90 summary and a ready-made fast/normal recommendation without doing your own percentile math.

## Known failure modes

- Unsupported chain name returns an error — only 12 specific chains are accepted (base, ethereum, arbitrum, optimism, polygon, bnb, avalanche, gnosis, linea, scroll, sonic, unichain)
- Missing required 'bloques' (block count) field may return a default or validation error
- RPC-level errors on the underlying EVM node cause upstream failures
- Payment not received or insufficient USDC balance results in 402 Payment Required
- Extremely large block counts may time out or return partial data

## How this service works

Fee history of the last N blocks on an EVM chain (eth_feeHistory): base fee per block, gas usage and priority tips at the 10th, 50th and 90th percentiles, with a tip recommendation to get included fast. 12 chains.

## Output

A JSON object containing: the chain name, number of blocks analyzed, a per-block breakdown (block number, gas usage %, base fee in gwei, P10/P50/P90 priority tips in gwei), the average base fee across all blocks, the predicted next base fee, and a tip recommendation object with 'normal' and 'fast' gwei values for transaction prioritization.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "red": {
   "enum": [
    "base",
    "ethereum",
    "arbitrum",
    "optimism",
    "polygon",
    "bnb",
    "avalanche",
    "gnosis",
    "linea",
    "scroll",
    "sonic",
    "unichain"
   ],
   "type": "string",
   "description": "Chain (default base)"
  },
  "bloques": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "red": "base",
  "bloques": 10,
  "detalle": [
   {
    "bloque": 52091652,
    "uso_gas_pct": 8.1,
    "base_fee_gwei": 0.005,
    "propina_p10_gwei": 0,
    "propina_p50_gwei": 0.001,
    "propina_p90_gwei": 0.005
   },
   {
    "bloque": 52091653,
    "uso_gas_pct": 8.1,
    "base_fee_gwei": 0.005,
    "propina_p10_gwei": 0,
    "propina_p50_gwei": 0.00115,
    "propina_p90_gwei": 0.0265
   }
  ],
  "base_fee_media_gwei": 0.005,
  "base_fee_siguiente_gwei": 0.005,
  "recomendacion_propina_gwei": {
   "normal": 0.001015,
   "rapida": 0.013771
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-evm-fee-history-eth-feehistory-bc719ca1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
