# Forest Gas Station – EVM Gas Snapshot

> Forest Gas Station – EVM Gas Snapshot is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-22).

Returns a bounded current EVM fee-history snapshot (base fee and priority-fee percentiles) for a specified supported chain via SolidRPC public JSON-RPC

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/chain/gas-snapshot?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-gas-station-evm-gas-snapshot-9a9706fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yU9EBf4nqG909-VX80EDB

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 forest-gas-station-evm-gas-snapshot-9a9706fa -d '<json body>'
```

Example prompt: What are the current base fees and priority fee percentiles on Ethereum right now? Pull a gas snapshot from Forest Gas Station.

## When to prefer this

Use this endpoint when you need a quick, current read of EVM gas fee conditions (base fee and priority fee percentiles) for one of seven supported chains (Ethereum, Optimism, BNB, Polygon, Base, Arbitrum, Avalanche) without needing gas limit estimation, transaction simulation, or wallet integration. Prefer this over raw RPC calls when you want a clean, pre-packaged fee-history snapshot via a pay-per-call API with no infrastructure setup.

## Known failure modes

- Unsupported chain value returns validation error
- SolidRPC upstream unavailability causes request failure
- HTTP 402 returned if payment header is missing or malformed
- Stale snapshot if upstream node is temporarily lagging
- Network timeout if the JSON-RPC provider is slow

## How this service works

Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.

## Output

Returns a bounded fee-history snapshot for the requested EVM chain, including recent base-fee data and sampled priority-fee percentile evidence from the latest blocks. Does not include gas limit estimation, transaction simulation, wallet access, or fee optimization recommendations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "ethereum",
    "optimism",
    "bnb",
    "polygon",
    "base",
    "arbitrum",
    "avalanche"
   ],
   "type": "string",
   "description": "Public chain value used to scope this lookup."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "chain": "ethereum",
   "source": "SolidRPC public EVM JSON-RPC",
   "base_fee": {
    "next_wei": "1",
    "latest_wei": "1"
   },
   "chain_id": 1,
   "freshness": "current_upstream_snapshot",
   "cache_age_ms": 0,
   "oldest_block": "1",
   "source_method": "eth_feeHistory",
   "gas_used_ratio": [
    0,
    0,
    0,
    0
   ],
   "sampled_blocks": 4,
   "transaction_broadcast": false,
   "transaction_simulated": false,
   "priority_fee_percentiles_wei": {
    "p25": "1",
    "p50": "1",
    "p90": "1"
   }
  },
  "meta": {
   "cache": "miss",
   "provider": "solidrpc-public",
   "checked_at": "2026-01-01T00:00:00.000Z",
   "duration_ms": 0
  },
  "version": "1",
  "capability": "chain.gas-snapshot"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-gas-station-evm-gas-snapshot-9a9706fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
