# World Chain API
> Live World Chain on-chain data via Blockscout. World Chain is Worldcoin's Ethereum L2 built on the OP Stack; gas and balances are in ETH. Network stats, gas prices, latest blocks, a block by height or hash, address detail with ETH balance, a transaction by hash, ERC-20 token metadata and a universal search across addresses, tokens, blocks and transactions. Real data, no key.

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

## Pricing
- **Free** (Free) — 2,200 calls/Mo, 1 req/s
- **Basic** ($17/Mo) — 90,000 calls/Mo, 10 req/s
- **Pro** ($51/Mo) — 600,000 calls/Mo, 20 req/s
- **Mega** ($165/Mo) — 3,000,000 calls/Mo, 50 req/s

## Endpoints

### Network

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

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

**Response:**
```json
{
    "data": {
        "fast": 0.01,
        "slow": 0.01,
        "unit": "gwei",
        "average": 0.01,
        "gas_used_today": "431260843807"
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:05.651Z",
        "request_id": "0ca044a0-aceb-408f-acdd-378a9130fd5c"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Network statistics

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.01,
            "slow": 0.01,
            "average": 0.01
        },
        "total_blocks": 30788060,
        "coin_price_usd": null,
        "gas_used_today": "431260843807",
        "market_cap_usd": 0,
        "total_addresses": "225240012",
        "total_transactions": "768439274",
        "transactions_today": "1447202",
        "network_utilization_percent": 2.98293695
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:05.811Z",
        "request_id": "0a49cbb1-e6fe-43c5-918f-0a869f55192d"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}
```

### Blocks

#### `GET /v1/block` — A block by height or hash

**Parameters:**
- `height` (query, optional, string) — Block height Example: `30775180`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x2b05884b391abf236482e58fecea94f0132d065a1d47136575829289fd2a140f",
            "size": 37052,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 30775180,
            "gas_used": 8081028,
            "tx_count": 26,
            "gas_limit": 280000000,
            "timestamp": "2026-06-08T02:33:19.000000Z",
            "burnt_fees": "4040514000000",
            "difficulty": "0",
            "base_fee_per_gas": "500000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:05.998Z",
        "request_id": "0e3a979c-933f-4175-b52c-dcdd57749d82"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

#### `GET /v1/blocks` — Latest blocks

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x7c9b0a7caba14ac1d95eeca08357373a040d0560a0a42f494cac580bf24dc33b",
                "size": 49543,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788312,
                "gas_used": 10456696,
                "tx_count": 36,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:51:03.000000Z",
                "burnt_fees": "5228348000000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x12e19d69b0f49e1fd3a263e63be8ecbda30323f4a8c56b50d44ddcfe87d5495c",
                "size": 36268,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788311,
                "gas_used": 7199071,
                "tx_count": 30,
                "gas_limit": 280000000,
                "timestamp": "2026-06-08T09:51:01.000000Z",
                "burnt_fees": "3599535500000",
                "difficulty": "0",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x70cd09d3c7c5dedb5ccb7cf247c84454058bda065359edd3a99734766973805b",
                "size": 33505,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 30788310,
                "gas_used": 7950158,
                "tx_count": 25,
             
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Address detail with ETH balance

**Parameters:**
- `address` (query, required, string) — Address hash Example: `0x79A02482A880bCE3F13e09Da970dC34db4CD24d1`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
            "name": "Bridged USDC (world-chain-mainnet)",
            "token": {
                "name": "USDC",
                "type": "ERC-20",
                "symbol": "USDC"
            },
            "creator": "0xb3D07aC7793cb7FEBecB58B29dC57fb7602b2388",
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:06.933Z",
        "request_id": "9c93e03e-15cd-4f87-8a41-6cf39efd3b69"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

#### `GET /v1/transaction` — A transaction by hash

**Parameters:**
- `hash` (query, required, string) — Transaction hash Example: `0xb40c5b5259cd0638cee36e2b4c35a2e8a60fca830040ccbd29a5598f79c78d42`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/world-api/v1/transaction?hash=0xb40c5b5259cd0638cee36e2b4c35a2e8a60fca830040ccbd29a5598f79c78d42"
```

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0xb40c5b5259cd0638cee36e2b4c35a2e8a60fca830040ccbd29a5598f79c78d42",
            "type": 126,
            "block": 30775180,
            "nonce": 30775183,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 46230,
            "gas_price": "0",
            "timestamp": "2026-06-08T02:33:19.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 13134
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:07.379Z",
        "request_id": "fa579a6a-260d-4fa5-ab21-69bea2eabbf7"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Tokens

#### `GET /v1/token` — ERC-20 token metadata

**Parameters:**
- `address` (query, required, string) — Token contract address Example: `0x79A02482A880bCE3F13e09Da970dC34db4CD24d1`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": "https://assets.coingecko.com/coins/images/6319/small/USDC.png?1769615602",
            "name": "USDC",
            "type": "ERC-20",
            "symbol": "USDC",
            "holders": null,
            "decimals": 6,
            "total_supply": "25427602192496",
            "exchange_rate_usd": 0.999655,
            "circulating_market_cap": "75541302140.71602"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:07.504Z",
        "request_id": "fd738054-c7b3-4465-9ad2-fe9efd8565c0"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal on-chain search

**Parameters:**
- `q` (query, required, string) — Address, token, block or tx Example: `USD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/world-api/v1/search?q=USD"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "USD",
        "results": [
            {
                "name": "USDC",
                "type": "token",
                "symbol": "USDC",
                "address": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"
            },
            {
                "name": "Stargate Bridged USDT0",
                "type": "token",
                "symbol": "USDT0",
                "address": "0x102d758f688a4C1C5a80b116bD945d4455460282"
            },
            {
                "name": "Re7 USDC",
                "type": "token",
                "symbol": "Re7USDC",
                "address": "0xb1E80387EbE53Ff75a89736097D34dC8D9E9045B"
            },
            {
                "name": "Osmosis allUSDT",
                "type": "token",
                "symbol": "USDT",
                "address": "0xb098302C82a239b05d3f77809Ca1aDA97B8ae220"
            },
            {
                "name": "Capyfi USDC",
                "type": "token",
                "symbol": "caUSDC",
                "address": "0x05350F1FC5d396917A73FCE318524551e287D1Df"
            },
            {
                "name": "Xone Bridged USDT (Xone)",
                "type": "token",
                "symbol": "USDT",
                "address": "0x9ee8C396b55134d3C75F3DE4c74088e799614B21"
            },
            {
                "name": "ROSCA Test USD",
                "type": "token",
                "symbol": "rTUSD",
                "address": "
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "world-api",
        "endpoints": {
            "GET /v1/gas": "Gas oracle (slow/average/fast in gwei).",
            "GET /v1/meta": "This document.",
            "GET /v1/block": "Block detail by height= or hash=.",
            "GET /v1/stats": "Network stats (blocks, txns, coin price, market cap, gas).",
            "GET /v1/token": "ERC-20 token detail by contract (address=).",
            "GET /v1/blocks": "The most recent blocks.",
            "GET /v1/search": "Search addresses, tokens, blocks & txns (q=).",
            "GET /v1/address": "Address balance, ENS & contract info (address=).",
            "GET /v1/transaction": "Transaction detail (hash=)."
        },
        "description": "Live World Chain on-chain data via Blockscout: network stats, a gas oracle (gwei), recent blocks and block detail, address balances with ENS, transaction detail, ERC-20 token detail and a universal search across addresses, tokens, blocks and transactions. World Chain is Worldcoin's Ethereum L2 (OP Stack); gas and balances are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:09.058Z",
        "request_id": "30268c57-7272-4c5b-9c46-537a0f6151ca"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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