# Gas History – Mantle Gas Price

> Gas History – Mantle Gas Price 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 the Mantle network: per-block base fees, gas utilization ratios, and percentile priority fees over the last N blocks (5–100).

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/mantle/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-gas-history-mantle-gas-price-3d5919ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fRZFvS6m9NkFsxPjM7kLA

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-gas-history-mantle-gas-price-3d5919ed
```

Example prompt: Show me Mantle gas fee history for the last 30 blocks — I want to see if the base fee is rising and what the 50th percentile priority fee looks like so I can decide when to send my transaction.

## When to prefer this

Use this endpoint when you need historical gas fee context on Mantle — to spot trends, pick an appropriate priority fee, or judge whether to wait before sending a transaction. For just the current Mantle gas price with no history, use the mantle_gas endpoint instead. Choose this over generic block explorers when you need structured, percentile-based fee analytics in a single programmatic call.

## Known failure modes

- blocks parameter out of range (below 5 or above 100) — returns validation error
- Mantle RPC node unavailable or slow — may return timeout or upstream error
- Payment not received / x402 auth failure — call rejected before processing
- Invalid query parameter type (non-integer blocks) — returns bad request error

## How this service works

Gas price history on Mantle (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 mantle_gas.

## Output

Returns a JSON object containing: the chain name and ID, the requested block count, fromBlock and toBlock range, an array of per-block records (block number, base fee in gwei, gas used ratio, and an array of priority fees at p10/p50/p90), and aggregate baseFeeGwei stats (low, high, average, latest, next) plus overall priorityFeeGwei 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-gas-history-mantle-gas-price-3d5919ed/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)
