# ZERO Network API
> Live EVM on-chain data for ZERO Network (chain id 543210) — the Zerion-built ZK-Stack Layer-3 that uses ETH for gas and offers human-readable addresses — served directly from public JSON-RPC nodes with multi-node failover. The status endpoint returns the chain and network id, the latest block height and the node client version. The block endpoint returns a block by number (or the latest) with its hash, parent hash, timestamp, transaction count, gas used and gas limit, miner and size. The gas endpoint returns the current gas price in both wei and gwei. The balance endpoint returns the ETH balance and outgoing transaction count for any address, converted from base wei (18 decimals) into whole ETH with exact big-integer scaling. Every figure is read live from the chain over JSON-RPC — nothing bundled or modelled — behind a short server-side cache with keep-warm so the feed stays fast and fresh. Ideal for explorers, wallet and dashboard tooling, gas trackers, address monitors and analytics apps across the ZERO Network ecosystem. Live keyless upstream. 5 endpoints.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/zero-api/..."
```

## Pricing
- **Free** (Free) — 300 calls/Mo, 2 req/s
- **Starter** ($11/Mo) — 15,300 calls/Mo, 8 req/s
- **Pro** ($34/Mo) — 81,000 calls/Mo, 16 req/s
- **Mega** ($83/Mo) — 318,000 calls/Mo, 40 req/s

## Endpoints

### ZERO

#### `GET /v1/balance` — Address balance & tx count

**Parameters:**
- `address` (query, optional, string) — EVM address (0x + 40 hex) Example: `0x000000000000000000000000000000000000dEaD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/zero-api/v1/balance?address=0x000000000000000000000000000000000000dEaD"
```

**Response:**
```json
{
    "data": {
        "chain": "ZERO Network",
        "symbol": "ETH",
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": 0,
        "tx_count": 0,
        "balance_wei": "0"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.467Z",
        "request_id": "01a51461-0240-4709-be42-7541dff66422"
    },
    "status": "ok",
    "message": "ZERO balance retrieved",
    "success": true
}
```

#### `GET /v1/block` — Block by number (or latest)

**Parameters:**
- `number` (query, optional, string) — Block number; omit for latest Example: `1000000`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/zero-api/v1/block?number=1000000"
```

**Response:**
```json
{
    "data": {
        "hash": "0x889ec9cca6b6c9e0437e413483b1e4b9a45b3474f36ff24bd30b56a936d93c8e",
        "chain": "ZERO Network",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 1000000,
        "gas_used": 971454,
        "tx_count": 4,
        "gas_limit": 1125899906842624,
        "timestamp": 1734398102,
        "size_bytes": 0,
        "parent_hash": "0x1064001a1a9713ce8e2d059bf2ddb57641aec3672555a267234e2902f52876b0",
        "timestamp_iso": "2024-12-17T01:15:02.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.556Z",
        "request_id": "ade81abc-14bf-47aa-a87c-7905230a271b"
    },
    "status": "ok",
    "message": "ZERO block retrieved",
    "success": true
}
```

#### `GET /v1/gas` — Current gas price

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/zero-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "chain": "ZERO Network",
        "source": "eth_gasPrice",
        "symbol": "ETH",
        "gas_price_wei": 60000000,
        "gas_price_gwei": 0.06
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.676Z",
        "request_id": "9e236723-d106-4ba6-95c6-c825bf56e8e8"
    },
    "status": "ok",
    "message": "ZERO gas retrieved",
    "success": true
}
```

#### `GET /v1/status` — Chain status

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/zero-api/v1/status"
```

**Response:**
```json
{
    "data": {
        "chain": "ZERO Network",
        "source": "ZERO Network RPC (ZK Stack)",
        "symbol": "ETH",
        "chain_id": 543210,
        "network_id": 543210,
        "latest_block": 3449415,
        "client_version": "zkSync/v2.0"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.786Z",
        "request_id": "d7133440-0cdd-4f41-803d-9bbca29fec75"
    },
    "status": "ok",
    "message": "ZERO status retrieved",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Spec

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/zero-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "api": "ZERO Network API",
        "chain": "ZERO Network",
        "source": "ZERO Network ZK-Stack JSON-RPC nodes",
        "symbol": "ETH",
        "chain_id": 543210,
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Live EVM on-chain data for ZERO Network — the Zerion-built ZK-Stack Layer-3 with ETH gas and human-readable addresses.",
        "documentation": "https://zero-api.oanor.dev"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.859Z",
        "request_id": "728b7674-5b97-4a94-9ffa-2dbed0baad6d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/zero-api
OpenAPI spec: https://www.oanor.com/api/zero-api/openapi.json
