# Scroll API
> Real-time on-chain data for Scroll (chain-id 534352) — the native zkEVM layer-2 that scales Ethereum with zero-knowledge proofs. 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 Scroll 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 Scroll zkEVM 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/scroll-api/..."
```

## Pricing
- **Free** (Free) — 4,800 calls/Mo, 3 req/s
- **Basic** ($13/Mo) — 58,300 calls/Mo, 10 req/s
- **Pro** ($33/Mo) — 233,500 calls/Mo, 25 req/s
- **Mega** ($72/Mo) — 936,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/scroll-api/v1/status"
```

**Response:**
```json
{
    "data": {
        "chain": "Scroll",
        "chain_id": 534352,
        "network_id": 534352,
        "rpc_healthy": true,
        "latest_block": 34086931,
        "native_symbol": "ETH",
        "client_version": "Geth/v5.10.6-mainnet/linux-amd64/go1.22.12"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:46.704Z",
        "request_id": "31da9298-d099-412d-ac36-1bbba736a263"
    },
    "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: `30000000`

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

**Response:**
```json
{
    "data": {
        "hash": "0x3d92380cbca7f8724bd8b559104436988654995a6a69e9ce7c49ec0aede16704",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 30000000,
        "gas_used": 123563,
        "gas_limit": 20000000,
        "timestamp": 1770887715,
        "size_bytes": 869,
        "parent_hash": "0x41a0b83d0fb140e3b52c8077f6f5b53fc62cfefcb666c3c8a79cdfbe6f877267",
        "timestamp_iso": "2026-02-12T09:15:15.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "120008"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:46.813Z",
        "request_id": "67413f17-691b-4a04-9c51-21e7d18f2150"
    },
    "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/scroll-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "at_block": 34086931,
        "gas_price_wei": "120108",
        "native_symbol": "ETH",
        "gas_price_gwei": 0.00012
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:46.940Z",
        "request_id": "976fd9d8-e868-4198-85ba-656b7fa9b8bc"
    },
    "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/scroll-api/v1/balance?address=0x000000000000000000000000000000000000dEaD"
```

**Response:**
```json
{
    "data": {
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": "0.014630860752342611",
        "balance_wei": "14630860752342611",
        "native_symbol": "ETH",
        "transaction_count": 0
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:47.059Z",
        "request_id": "ac7cb79f-d2f7-422b-8728-b4bc42fecf47"
    },
    "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/scroll-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "type": "zkEVM rollup (zero-knowledge L2)",
        "chain": "Scroll",
        "network": "mainnet",
        "chain_id": 534352,
        "decimals": 18,
        "ecosystem": "Scroll — native zkEVM Ethereum layer-2",
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Scroll is a bytecode-compatible zkEVM layer-2 rollup that scales Ethereum with zero-knowledge proofs.",
        "documentation": "https://scroll-api.oanor.dev",
        "native_symbol": "ETH"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:47.120Z",
        "request_id": "0abab546-3b2f-47a0-ab47-8d94742bb708"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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