# Orderly API
> Live Orderly on-chain data via Blockscout. Orderly is an omnichain orderbook 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/orderly-api/..."
```

## Pricing
- **Free** (Free) — 1,700 calls/Mo, 1 req/s
- **Basic** ($13/Mo) — 80,500 calls/Mo, 10 req/s
- **Pro** ($40/Mo) — 520,500 calls/Mo, 20 req/s
- **Mega** ($128/Mo) — 2,630,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/orderly-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 0.01,
        "slow": 0.01,
        "unit": "gwei",
        "average": 0.01,
        "gas_used_today": "27024755453"
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:26.855Z",
        "request_id": "bbbce851-aeb6-4186-9957-c9115e3a8d75"
    },
    "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/orderly-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.01,
            "slow": 0.01,
            "average": 0.01
        },
        "total_blocks": 42151811,
        "coin_price_usd": null,
        "gas_used_today": "27024755453",
        "market_cap_usd": 0,
        "total_addresses": "125354",
        "total_transactions": "56557145",
        "transactions_today": "65323",
        "network_utilization_percent": 0.20971428888888888
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:27.177Z",
        "request_id": "aac4d8b7-3e54-4c50-9545-5a46e00420fa"
    },
    "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: `42140411`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x98b59bf99617ec5ad379948b2dcde7cac10af4cbd0335f49f96eb474f8afc260",
            "size": 907,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 42140411,
            "gas_used": 46194,
            "tx_count": 1,
            "gas_limit": 180000000,
            "timestamp": "2026-06-08T03:24:09.000000Z",
            "burnt_fees": "11548500",
            "difficulty": "0",
            "base_fee_per_gas": "250"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:27.498Z",
        "request_id": "691f676b-0adc-493e-b3e6-7ed37428a13e"
    },
    "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/orderly-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x91b28706c9cae7f38d23382fa2564372a3eebecd5c5aab767ab3e337e72e0b18",
                "size": 1695,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42152000,
                "gas_used": 115870,
                "tx_count": 2,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:27.000000Z",
                "burnt_fees": "28967500",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0x64ef14a628beea6e5f2645d06033eccd4619850c36ff7be3f33a1c3fa0eabb8b",
                "size": 2543,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42151999,
                "gas_used": 193225,
                "tx_count": 3,
                "gas_limit": 180000000,
                "timestamp": "2026-06-08T09:50:25.000000Z",
                "burnt_fees": "48306250",
                "difficulty": "0",
                "base_fee_per_gas": "250"
            },
            {
                "hash": "0x255011c2e34bc725f6ea3ce902301acfea3e650f8ec3bcdade8512e1c4e2d8f6",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 42151998,
                "gas_used": 46194,
                "tx_count": 1,
                "gas_limit": 180000000,
 
…(truncated, see openapi.json for full schema)
```

### Accounts

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

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xda6087E69C51E7D31b6DBAD276a3c44703DFdCAd",
            "name": "Bridged USDC (Stargate)",
            "token": {
                "name": "Bridged USDC (Stargate)",
                "type": "ERC-20",
                "symbol": "USDC.e"
            },
            "creator": "0x5e6e4f234c7Ad525700fcF5B7862589950589ed5",
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:28.709Z",
        "request_id": "aeb85c3f-1277-43f7-b4d1-0561a407d363"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0x8ae69ef117926e2c888b7ce96e30ab08fd4600efc6f36bd27fa5ae97f3edcc17",
            "type": 126,
            "block": 42140411,
            "nonce": 42140414,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 46194,
            "gas_price": "0",
            "timestamp": "2026-06-08T03:24:09.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 11590
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:29.037Z",
        "request_id": "8fc51c2d-b11a-4891-9770-626ff630e2ab"
    },
    "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: `0xda6087E69C51E7D31b6DBAD276a3c44703DFdCAd`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Bridged USDC (Stargate)",
            "type": "ERC-20",
            "symbol": "USDC.e",
            "holders": null,
            "decimals": 6,
            "total_supply": "49797998",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:29.305Z",
        "request_id": "59e37a65-9619-4ca8-9ad3-85c66fbf54df"
    },
    "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/orderly-api/v1/search?q=USD"
```

**Response:**
```json
{
    "data": {
        "count": 1,
        "query": "USD",
        "results": [
            {
                "name": "Bridged USDC (Stargate)",
                "type": "token",
                "symbol": "USDC.e",
                "address": "0xda6087E69C51E7D31b6DBAD276a3c44703DFdCAd"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:29.607Z",
        "request_id": "5b2ae6ce-8ab1-4cf0-98da-984adcea4fd9"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "orderly-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 Orderly 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. Orderly is an omnichain orderbook Ethereum L2 (OP Stack); gas and balances are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:29.689Z",
        "request_id": "eba9987e-649c-4749-9daa-292347a2942a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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