# Zora Chain API
> Live on-chain data for Zora Network — an Ethereum Layer 2 for NFTs and creators — via its public Blockscout explorer (no wallet, no key). The stats endpoint returns chain-wide totals (blocks, transactions, addresses, average block time, gas used); gas gives the current gas-price oracle (slow/average/fast). Blocks lists the latest blocks, and a single block resolves by height or by hash with its transaction count, gas, miner and timestamp. The address endpoint returns any account's ETH balance, nonce, contract flag and token holdings; transaction resolves a tx by hash with its from/to, value in ETH, fee, status and block. The token endpoint returns an ERC-20 token's metadata (name, symbol, decimals, total supply, holders) by contract address, and search runs a universal lookup across addresses, tokens, blocks and transactions. Gas, balances, values and fees are denominated in ETH, the native coin. Real on-chain data straight from the explorer, refreshed every call — no key. 9 endpoints. For multi-chain coverage combine with the other oanor chain APIs (Ethereum, Base, Arbitrum and more).

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

## Pricing
- **Free** (Free) — 2,800 calls/Mo, 2 req/s
- **Basic** ($20/Mo) — 102,000 calls/Mo, 8 req/s
- **Pro** ($61/Mo) — 650,000 calls/Mo, 20 req/s
- **Mega** ($205/Mo) — 3,550,000 calls/Mo, 50 req/s

## Endpoints

### Chain

#### `GET /v1/gas` — Gas-price oracle

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

**Response:**
```json
{
    "data": {
        "fast": 0.01,
        "slow": 0.01,
        "unit": "gwei",
        "average": 0.01,
        "gas_used_today": "2503323358"
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:39.500Z",
        "request_id": "51d0f095-ee12-4d47-800f-82f59aa818de"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Chain stats

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.01,
            "slow": 0.01,
            "average": 0.01
        },
        "total_blocks": 47108795,
        "coin_price_usd": null,
        "gas_used_today": "2503323358",
        "market_cap_usd": 0,
        "total_addresses": "7162743",
        "total_transactions": "108337683",
        "transactions_today": "48333",
        "network_utilization_percent": 0.19694993333333333
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:39.814Z",
        "request_id": "e070e501-5eae-43e3-a1f7-f7de509bfbf7"
    },
    "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: `47101275`
- `hash` (query, optional, string) — Block hash (alternative to height)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x4082222ffc1c6e6bf1f97c9d44b9a608d442898ef948272136fc5bfb0733c89b",
            "size": 1674,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 47101275,
            "gas_used": 137329,
            "tx_count": 2,
            "gas_limit": 30000000,
            "timestamp": "2026-06-08T05:26:29.000000Z",
            "burnt_fees": "34606908",
            "difficulty": "0",
            "base_fee_per_gas": "252"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:40.133Z",
        "request_id": "f9a9deb7-b3cd-4091-8e3e-9affaf0dd589"
    },
    "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/zora-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x03a75d363d65bd2edb6ba995417626abf24ba061cd3986ea07cd26ca88ef815d",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109170,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:39.000000Z",
                "burnt_fees": "11649960",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x59ff0ac800ffe90b33b7360574349db6fa77efd6e76617cc7139216d159beb3d",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109169,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:37.000000Z",
                "burnt_fees": "11649960",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x898c78952d51d23b7c36fd565996de952c2608962774dffb5ef8ac6e9f03132f",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109168,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
        
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Account balance & holdings

**Parameters:**
- `address` (query, required, string) — Account address (0x + 40 hex) Example: `0x13fDac9F9b4777705db45291bbFF3c972c6d1d97`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x13fDac9F9b4777705db45291bbFF3c972c6d1d97",
            "name": "ERC1967Proxy",
            "token": null,
            "creator": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D",
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:41.516Z",
        "request_id": "7d79124d-cd32-4d41-82f5-29270ea847dd"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

**Parameters:**
- `hash` (query, required, string) — Transaction hash (0x + 64 hex) Example: `0x072bfbb1be0c38dc085af047a109816da869f5e081cd20f884342ed2294d2f90`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x13fDac9F9b4777705db45291bbFF3c972c6d1d97",
            "from": "0xf7bAc63fc7CEaCf0589F25454Ecf5C2ce904997c",
            "hash": "0x072bfbb1be0c38dc085af047a109816da869f5e081cd20f884342ed2294d2f90",
            "type": 2,
            "block": 47101275,
            "nonce": 11561,
            "method": "executeRelayerRefundLeaf",
            "status": "ok",
            "fee_eth": 2.38814794449e-7,
            "fee_wei": "238814794449",
            "gas_used": 91099,
            "gas_price": "2000252",
            "timestamp": "2026-06-08T05:26:29.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 7896
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:41.951Z",
        "request_id": "2153eafe-d8ab-41fd-834b-07196f4e3ba8"
    },
    "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: `0x1F781d47cD59257D7AA1Bd7b2fbaB50D57AF8587`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "BLOCKS",
            "type": "ERC-721",
            "symbol": "BLOCKS",
            "holders": null,
            "decimals": null,
            "total_supply": null,
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:42.219Z",
        "request_id": "ab9c6f47-c61a-433f-b487-ad1bddaffc42"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal search

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

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "BLOCKS",
        "results": [
            {
                "name": "BLOCKS",
                "type": "token",
                "symbol": "BLOCKS",
                "address": "0x1F781d47cD59257D7AA1Bd7b2fbaB50D57AF8587"
            },
            {
                "name": "AND: A (Digital) Coffee Table Book on Performance Art &amp; Blockchain",
                "type": "token",
                "symbol": "$ANDOONA",
                "address": "0xF0559217be13E14162B51367745BcBBf3A3a6d85"
            },
            {
                "name": "cadeia de blocos",
                "type": "token",
                "symbol": "block",
                "address": "0xD23a9197cFE01ee42689310bD9D6636F9D945C7C"
            },
            {
                "name": "Blockchain Boom",
                "type": "token",
                "symbol": "BLOK",
                "address": "0x84bE8CF231CD9ccc2Fa7dFa8632989e05B0fd2B4"
            },
            {
                "name": "Red Block",
                "type": "token",
                "symbol": "$RDB",
                "address": "0x572b434bB9dFCAFDC31b08D0e5851a7D39f9F384"
            },
            {
                "name": "Xai Blockchain x Zora",
                "type": "token",
                "symbol": "$XBL",
                "address": "0x23031eC28a67E4A4017827F547bd3948d92d265A"
            },
            {
                "name": "Funny ink block",
                "type": "token",
     
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "zora-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 Zora Network 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. Zora is an Ethereum Layer 2 for NFTs and creators; gas, balances and fees are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:42.860Z",
        "request_id": "f4136400-345b-4ade-894b-6c84f4e07355"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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