# World Chain API
> Real-time on-chain data for World Chain (chain-id 480) — the Optimism-Superchain OP Stack layer-2 powering the Worldcoin / World ID ecosystem. Query live network status (latest block height, network id, client version), fetch any block by height or the latest one (timestamp, transaction count, gas used / limit, base fee, miner), read the current gas price in wei and gwei, and look up the native ETH balance and transaction count of any address. A keyless, no-account JSON wrapper over the canonical World Chain JSON-RPC node — decoded from hex into plain decimals and human-readable ETH so you do not have to. Ideal for explorers, wallets, dashboards, gas estimators and analytics on the Worldcoin chain.

## 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/worldchain-api/..."
```

## Pricing
- **Free** (Free) — 4,400 calls/Mo, 3 req/s
- **Basic** ($13/Mo) — 61,500 calls/Mo, 10 req/s
- **Pro** ($35/Mo) — 246,000 calls/Mo, 25 req/s
- **Mega** ($74/Mo) — 982,000 calls/Mo, 60 req/s

## Endpoints

### Network

#### `GET /v1/status` — Network status (latest block, chain id, client version)

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

**Response:**
```json
{
    "data": {
        "chain": "World Chain",
        "chain_id": 480,
        "network_id": 480,
        "rpc_healthy": true,
        "latest_block": 31093224,
        "native_symbol": "ETH",
        "client_version": "reth/v1.11.3-d6324d6/x86_64-unknown-linux-gnu"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:47.950Z",
        "request_id": "2dc51046-fab3-43c8-a82d-8c2589637848"
    },
    "status": "ok",
    "message": "Chain status retrieved successfully",
    "success": true
}
```

### Blocks

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

**Parameters:**
- `number` (query, optional, string) — Block height (decimal or 0x-hex), or "latest" Example: `31000000`

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

**Response:**
```json
{
    "data": {
        "hash": "0x405e963c3531b5eebe7ce8baf29776a2f832bd6070c771580d25dcefbb03096d",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 31000000,
        "gas_used": 7328009,
        "gas_limit": 280000000,
        "timestamp": 1781335639,
        "size_bytes": 36832,
        "parent_hash": "0xc325ba45cee082be5749172f1a16e1408257a2d0423bb94b75e4f496819b4b45",
        "timestamp_iso": "2026-06-13T07:27:19.000Z",
        "transaction_count": 29,
        "base_fee_per_gas_wei": "500000"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:48.172Z",
        "request_id": "7e886943-dd50-494a-81c5-c84e36492dfa"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

### Gas

#### `GET /v1/gas` — Current gas price (wei + gwei)

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

**Response:**
```json
{
    "data": {
        "at_block": 31093224,
        "gas_price_wei": "1500000",
        "native_symbol": "ETH",
        "gas_price_gwei": 0.002
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:48.294Z",
        "request_id": "468814e8-a029-4e7a-9fd1-fb4facd75167"
    },
    "status": "ok",
    "message": "Gas price retrieved successfully",
    "success": true
}
```

### Accounts

#### `GET /v1/balance` — Native ETH balance and transaction count of an address

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

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

**Response:**
```json
{
    "data": {
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": "0.000216601461783894",
        "balance_wei": "216601461783894",
        "native_symbol": "ETH",
        "transaction_count": 0
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:48.381Z",
        "request_id": "e02aa7fd-9470-46b1-8658-84a0744d61a2"
    },
    "status": "ok",
    "message": "Balance retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Service metadata

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

**Response:**
```json
{
    "data": {
        "type": "OP Stack L2 (Optimism Superchain)",
        "chain": "World Chain",
        "network": "mainnet",
        "chain_id": 480,
        "decimals": 18,
        "ecosystem": "Worldcoin / World ID",
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "World Chain is an Ethereum layer-2 built on the OP Stack for the Worldcoin / World ID ecosystem.",
        "documentation": "https://worldchain-api.oanor.dev",
        "native_symbol": "ETH"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:48.458Z",
        "request_id": "3c47a479-752b-4737-9766-8851e57040ac"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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