# Ethereum Network Info (Batched RPC)

> Ethereum Network Info (Batched RPC) is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns Ethereum network metadata — chain ID, block height, and gas price — in a single batched RPC call for a given network.

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/network-info
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-a295ba1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RIh6BjNhUzffEKBiQHPcd

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 skills-onesource-io-a295ba1b
```

Example prompt: What's the current chain ID, block number, and gas price on Ethereum mainnet right now?

## When to prefer this

Use this endpoint when you need a quick, single-call snapshot of an EVM network's current state (chain ID + block height + gas price) without making three separate RPC calls. Ideal for agents that need to confirm network identity and estimate transaction fees before submitting on-chain transactions, or for monitoring current gas conditions across multiple supported networks.

## Known failure modes

- Unsupported network value returns validation error — only 'ethereum', 'sepolia', 'avax', 'megaeth', 'megaeth-testnet', 'base' are valid
- RPC node unreachable or rate-limited returns 5xx error
- Payment failure (x402) if USDC balance or authorization is insufficient
- Stale block data if the underlying RPC node is lagging behind chain head

## How this service works

Ethereum network info - chain ID, block height, and gas price in one batched RPC call (eth_chainId + eth_blockNumber + eth_gasPrice)

## Output

Returns a JSON object with the network name, chain ID (hex), current block number (hex), gas price (hex), and net version string — all fetched in a single batched eth_chainId + eth_blockNumber + eth_gasPrice RPC call. Also includes request metadata such as endpoint path and request ID.

## Example request

```json
{
 "network": "ethereum"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "enum": [
    "ethereum",
    "sepolia",
    "avax",
    "megaeth",
    "megaeth-testnet",
    "base"
   ],
   "type": "string",
   "default": "ethereum"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "network",
    "chain_id",
    "gas_price",
    "net_version",
    "block_number"
   ],
   "properties": {
    "network": {
     "type": "string"
    },
    "chain_id": {
     "type": "string"
    },
    "gas_price": {
     "type": "string"
    },
    "net_version": {
     "type": "string"
    },
    "block_number": {
     "type": "string"
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "endpoint",
    "request_id"
   ],
   "properties": {
    "endpoint": {
     "type": "string"
    },
    "request_id": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-a295ba1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skills.onesource.io](https://www.zero.xyz/host/skills.onesource.io/llms.txt)
