# Lisk API
> Live Lisk on-chain data via Blockscout. Lisk is an Ethereum L2 built on the OP Stack and part of the Optimism Superchain; 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/lisk-api/..."
```

## Pricing
- **Free** (Free) — 1,700 calls/Mo, 1 req/s
- **Basic** ($13/Mo) — 68,000 calls/Mo, 10 req/s
- **Pro** ($40/Mo) — 460,000 calls/Mo, 20 req/s
- **Mega** ($132/Mo) — 2,350,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/lisk-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 0.01,
        "slow": 0.01,
        "unit": "gwei",
        "average": 0.01,
        "gas_used_today": "2559729568"
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:33.243Z",
        "request_id": "72093ac6-11b4-473d-b573-81d11c041714"
    },
    "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/lisk-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.01,
            "slow": 0.01,
            "average": 0.01
        },
        "total_blocks": 33089553,
        "coin_price_usd": 1660.1,
        "gas_used_today": "2559729568",
        "market_cap_usd": 200348323501.4652,
        "total_addresses": "2055321",
        "total_transactions": "99959675",
        "transactions_today": "47433",
        "network_utilization_percent": 0.08383706666666667
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:33.391Z",
        "request_id": "4461f493-9330-439a-a69d-8a514c49638b"
    },
    "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: `33077071`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x0c50a11bed553e8ee3b401919de2ef90f72343e78d7e24f47e9985da4beb500c",
            "size": 908,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 33077071,
            "reward": "-46935630",
            "gas_used": 46242,
            "tx_count": 1,
            "gas_limit": 60000000,
            "timestamp": "2026-06-08T01:42:13.000000Z",
            "burnt_fees": "46935630",
            "difficulty": "0",
            "base_fee_per_gas": "1015"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:33.569Z",
        "request_id": "e2230308-dd91-4e81-86fd-cd8898c9df2e"
    },
    "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/lisk-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x5d8cf2169fa0b3ddee32003d50850527b5307e3e99fa2c91563f0bc4ffa6d933",
                "size": 908,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33091749,
                "reward": "-46935630",
                "gas_used": 46242,
                "tx_count": 1,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:29.000000Z",
                "burnt_fees": "46935630",
                "difficulty": "0",
                "base_fee_per_gas": "1015"
            },
            {
                "hash": "0x3660acfbed660d8447d9b6d5edcc7ac84c215b386a41f8c55939977eb4a27e34",
                "size": 908,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33091748,
                "reward": "-46935630",
                "gas_used": 46242,
                "tx_count": 1,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:51:27.000000Z",
                "burnt_fees": "46935630",
                "difficulty": "0",
                "base_fee_per_gas": "1015"
            },
            {
                "hash": "0x460495d52000fd3df3201a24f4f3b9a8a05f5f8a06b22d1bc34aa30c4162c3f5",
                "size": 908,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 33091747,
                "reward": "-46935
…(truncated, see openapi.json for full schema)
```

### Accounts

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

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x43F2376D5D03553aE72F4A8093bbe9de4336EB08",
            "name": "TransparentUpgradeableProxy",
            "token": {
                "name": "Stargate USD₮0 (Bridged)",
                "type": "ERC-20",
                "symbol": "USD₮0"
            },
            "creator": "0x5e6e4f234c7Ad525700fcF5B7862589950589ed5",
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:34.394Z",
        "request_id": "eea39521-0d94-4a2d-8498-c434abfa277e"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0x83412641505f295bd109a3e69175f0dff9da1dc24b1a9a677fae5930501a7d90",
            "type": 126,
            "block": 33077071,
            "nonce": 33077074,
            "method": "setL1BlockValuesJovian",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 46242,
            "gas_price": "0",
            "timestamp": "2026-06-08T01:42:13.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 14680
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:34.821Z",
        "request_id": "14422407-47e3-4898-870a-6f16e304d56f"
    },
    "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: `0x43F2376D5D03553aE72F4A8093bbe9de4336EB08`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Stargate USD₮0 (Bridged)",
            "type": "ERC-20",
            "symbol": "USD₮0",
            "holders": null,
            "decimals": 6,
            "total_supply": "419043139968",
            "exchange_rate_usd": 0.999536,
            "circulating_market_cap": "1197968.5174545539"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:34.955Z",
        "request_id": "47d26069-2684-4b45-adc9-46f1ea8f23f8"
    },
    "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/lisk-api/v1/search?q=USD"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "USD",
        "results": [
            {
                "name": "Stargate USD₮0 (Bridged)",
                "type": "token",
                "symbol": "USD₮0",
                "address": "0x43F2376D5D03553aE72F4A8093bbe9de4336EB08"
            },
            {
                "name": "Bridged USDC (Lisk)",
                "type": "token",
                "symbol": "USDC.e",
                "address": "0xF242275d3a6527d877f2c927a82D9b057609cc71"
            },
            {
                "name": "Tether USD",
                "type": "token",
                "symbol": "USDT",
                "address": "0x05D032ac25d322df992303dCa074EE7392C117b9"
            },
            {
                "name": "Ionic Tether USD",
                "type": "token",
                "symbol": "ionUSDT",
                "address": "0x0D72f18BC4b4A2F0370Af6D799045595d806636F"
            },
            {
                "name": "Ionic USD Coin",
                "type": "token",
                "symbol": "ionUSDC",
                "address": "0x7682C12F6D1af845479649c77A9E7729F0180D78"
            },
            {
                "name": "Re7 USDT0",
                "type": "token",
                "symbol": "Re7USDT0",
                "address": "0x50cB55BE8cF05480a844642cB979820C847782aE"
            },
            {
                "name": "USDT Whale",
                "type": "token",
                "symbol": "UW",
                
…(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/lisk-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "service": "lisk-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 Lisk (L2) 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. Lisk is an Ethereum L2 (OP Stack, Optimism Superchain); gas and balances are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:35.688Z",
        "request_id": "16c47bbd-1c43-45f8-b99d-98cea6a5f53a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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