# Zircuit API
> Real-time on-chain data for Zircuit (chain-id 48900) — the zero-knowledge rollup layer-2 on Ethereum with AI-driven Sequencer Level Security. 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 Zircuit 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 Zircuit ZK rollup.

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

## Pricing
- **Free** (Free) — 5,200 calls/Mo, 3 req/s
- **Basic** ($14/Mo) — 62,400 calls/Mo, 10 req/s
- **Pro** ($34/Mo) — 241,500 calls/Mo, 25 req/s
- **Mega** ($73/Mo) — 949,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/zircuit-api/v1/status"
```

**Response:**
```json
{
    "data": {
        "chain": "Zircuit",
        "chain_id": 48900,
        "network_id": 48900,
        "rpc_healthy": true,
        "latest_block": 30792934,
        "native_symbol": "ETH",
        "client_version": "Geth/v1.101404.1-0.20260119181514-a66f6ab47d37-no-ccc/amd64"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:44.622Z",
        "request_id": "97be43de-2e54-4fe6-881b-a7b27abb7e8a"
    },
    "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: `20000000`

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

**Response:**
```json
{
    "data": {
        "hash": "0xad3cefedd7dfb419c32e92eec345e8e48f8946f25fa15e9c926f3a75de91feaf",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 20000000,
        "gas_used": 48483,
        "gas_limit": 30000000,
        "timestamp": 1759936215,
        "size_bytes": 897,
        "parent_hash": "0x54fafd701a58ff4600a53e28e8bdacdab6b2171b67f2e0c71bfedff9e98fa010",
        "timestamp_iso": "2025-10-08T15:10:15.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "254"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:44.753Z",
        "request_id": "db7c8fad-a022-446d-8c1f-5cdb3ec05a72"
    },
    "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/zircuit-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "at_block": 30792934,
        "gas_price_wei": "1000254",
        "native_symbol": "ETH",
        "gas_price_gwei": 0.001
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:44.864Z",
        "request_id": "ab4fa395-7962-454d-9a7c-52bb29a253c9"
    },
    "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/zircuit-api/v1/balance?address=0x000000000000000000000000000000000000dEaD"
```

**Response:**
```json
{
    "data": {
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": "0.000151624961729383",
        "balance_wei": "151624961729383",
        "native_symbol": "ETH",
        "transaction_count": 0
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:45.012Z",
        "request_id": "5400d5ed-bfe3-484d-8266-d71a6d37e2b3"
    },
    "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/zircuit-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "type": "ZK-rollup L2 with AI-powered Sequencer Level Security (SLS)",
        "chain": "Zircuit",
        "network": "mainnet",
        "chain_id": 48900,
        "decimals": 18,
        "ecosystem": "Zircuit — zero-knowledge Ethereum layer-2",
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Zircuit is a zero-knowledge rollup layer-2 on Ethereum featuring AI-driven Sequencer Level Security.",
        "documentation": "https://zircuit-api.oanor.dev",
        "native_symbol": "ETH"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:45.113Z",
        "request_id": "eabba497-4318-4c4d-b330-a4692e19cec1"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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