# EVM Network Info API (Chain ID, Block Number, Gas Price)

> EVM Network Info API (Chain ID, Block Number, Gas Price) is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns the current chain ID, latest block number, and gas price for a specified EVM network (Base, Polygon, Arbitrum, or Optimism)

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net/data/chain/network-info?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-network-info-api-chain-id-block-number-gas-price-fc537fb6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CzumNp30NMa1axbrO9LOU

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 evm-network-info-api-chain-id-block-number-gas-price-fc537fb6
```

Example prompt: What's the current gas price and latest block number on Base right now?

## When to prefer this

Choose this endpoint when you need real-time EVM network metadata — specifically chain ID, block number, and gas price — for one of the four supported L2/sidechain networks (Base, Polygon, Arbitrum, Optimism). It is ideal for agents that need to assess gas conditions before submitting transactions, verify network identity, or track chain progress without running a full node or managing RPC keys directly.

## Known failure modes

- Invalid or unsupported chain name returns an error — only base, polygon, arbitrum, optimism are accepted
- Missing ?chain= query parameter may return an error or default behavior
- Network timeout or RPC node unavailability may result in a 503 or delayed response
- Payment failure (x402) if USDC funds are insufficient

## How this service works

EVM network info: chain id, latest block number and gas price for base|polygon|arbitrum|optimism. ?chain=base

## Output

A JSON object containing the chain ID (integer), the latest block number (integer), and the current gas price (in wei or gwei) for the requested EVM network (Base, Polygon, Arbitrum, or Optimism).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-network-info-api-chain-id-block-number-gas-price-fc537fb6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net/llms.txt)
