# LUKSO Chain API
> Live on-chain data for LUKSO mainnet (the creator-economy Ethereum L1 behind Universal Profiles and LSP standards, native LYX) via Blockscout — no key. Read network stats (block height, total transactions, gas), a gas oracle in gwei, the most recent blocks and full block detail by height or hash, any address balance and contract info, full transaction detail, ERC-20/LSP token detail by contract, and a universal search across addresses, tokens, blocks and transactions. Real Layer-1 chain data with the rotating proxy as automatic fallback — 9 endpoints. Ideal for wallets, explorers, Universal Profile tooling, portfolio trackers and on-chain monitoring on LUKSO.

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

## Pricing
- **Free** (Free) — 4,550 calls/Mo, 2 req/s
- **Basic** ($8/Mo) — 107,000 calls/Mo, 8 req/s
- **Pro** ($26/Mo) — 590,000 calls/Mo, 20 req/s
- **Mega** ($73/Mo) — 2,850,000 calls/Mo, 50 req/s

## Endpoints

### Network

#### `GET /v1/gas` — Gas oracle (gwei)

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

**Response:**
```json
{
    "data": {
        "fast": 0.28,
        "slow": 0.19,
        "unit": "gwei",
        "average": 0.28,
        "gas_used_today": "118176609707"
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:55.935Z",
        "request_id": "4c87baba-d87d-469d-8710-70e18b81fb6e"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Network stats

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.28,
            "slow": 0.19,
            "average": 0.28
        },
        "total_blocks": 7709391,
        "coin_price_usd": null,
        "gas_used_today": "118176609707",
        "market_cap_usd": 0,
        "total_addresses": "135395",
        "total_transactions": "6631151",
        "transactions_today": "3657",
        "network_utilization_percent": 16.522014095238095
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.071Z",
        "request_id": "4a81c3d6-620d-431e-a389-53fdc0512895"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}
```

### Blocks

#### `GET /v1/block` — Block detail by height or hash

**Parameters:**
- `height` (query, optional, string) — Block height Example: `7708000`
- `hash` (query, optional, string) — Block hash (0x + 64 hex)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x3f08ebe3b60978faefce367e253c7f609c288465008a6cd49123ae2bc7e46600",
            "size": 1202,
            "miner": "0xa5b37D755B97C272853b9726C905414706A0553a",
            "height": 7708000,
            "gas_used": 0,
            "tx_count": 0,
            "gas_limit": 42000000,
            "timestamp": "2026-06-08T12:04:36.000000Z",
            "burnt_fees": "0",
            "difficulty": "0",
            "base_fee_per_gas": "8"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.233Z",
        "request_id": "1e2da798-0140-4d12-b155-0176e2c44bd3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

#### `GET /v1/blocks` — Most recent blocks

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x3f315edb94446bf9a08c6a2072a6858a1a90d27e9a1f420731f64b4eb0c12192",
                "size": 1204,
                "miner": "0xa5b37D755B97C272853b9726C905414706A0553a",
                "height": 7709795,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:25:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "9"
            },
            {
                "hash": "0x5a60f9511c8017ac1b4bc606db5c3a3bd5cb8dd17519e1fa1173a675b8944cc2",
                "size": 1370,
                "miner": "0x9F49a95b0c3c9e2A6c77a16C177928294c0F6F04",
                "height": 7709794,
                "gas_used": 37976217,
                "tx_count": 1,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:25:36.000000Z",
                "burnt_fees": "303809736",
                "difficulty": "0",
                "base_fee_per_gas": "8"
            },
            {
                "hash": "0x7f9c46f67764573b306401c1c55354729d8092cc811d43cab46cbccde559981d",
                "size": 1189,
                "miner": "0x9F49a95b0c3c9e2A6c77a16C177928294c0F6F04",
                "height": 7709793,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 42000000,
                "timest
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Address balance & contract info

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xfeDc830E079C1Fb25b801713188D425Da0237e81",
            "name": null,
            "token": null,
            "creator": null,
            "balance_lyx": 32.675074762791766,
            "balance_wei": "32675074762791762507",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.612Z",
        "request_id": "3a4d2915-536b-4cc1-92d7-18905867b4e5"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

#### `GET /v1/transaction` — Transaction detail

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x3983151E0442906000DAb83c8b1cF3f2D2535F82",
            "from": "0xfeDc830E079C1Fb25b801713188D425Da0237e81",
            "hash": "0xbe4e1aba470f879626a526ae92cdc25a32da387aa0ddb48cf1ae4df7c440a6c2",
            "type": 0,
            "block": 7708061,
            "nonce": 212818,
            "method": "refine",
            "status": "ok",
            "fee_lyx": 0.002223060141539636,
            "fee_wei": "2223060141539636",
            "gas_used": 40169444,
            "gas_price": "55342069",
            "timestamp": "2026-06-08T12:17:12.000000Z",
            "value_lyx": 0,
            "value_wei": "0",
            "confirmations": 1735
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.754Z",
        "request_id": "4ef0ce38-d425-404c-8da5-09aa4b8eabe3"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Tokens

#### `GET /v1/token` — Token detail (ERC-20 / LSP7)

**Parameters:**
- `address` (query, required, string) — Token contract (0x + 40 hex) Example: `0x6E55472109E6aBE4054a8E8b8d9EdFfCb31032C5`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Merkly Hyperlane FT",
            "type": "ERC-20",
            "symbol": "hMERK",
            "address": "0x6E55472109E6aBE4054a8E8b8d9EdFfCb31032C5",
            "holders": 1409,
            "decimals": 18,
            "total_supply": "8326000000000000000000",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.882Z",
        "request_id": "ea75721c-01e6-42c2-a9ef-6add5af2328d"
    },
    "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: `lukso`

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "lukso",
        "results": [
            {
                "name": "Genesis Address - LUKSO Blockchain GmbH",
                "type": "label",
                "address": "0x5a4154edddE64858664F6219e031B6a47BA30993"
            },
            {
                "name": "LUKSO OG NFT",
                "type": "token",
                "symbol": "LYXOG",
                "address": "0xb2894BFdAC8d21c2098196B2707c738F5533e0A8"
            },
            {
                "name": "LuksoBull",
                "type": "token",
                "symbol": "LBULL",
                "address": "0x1B710a6A39fed5CD9CFd89368111c311d9671e31"
            },
            {
                "name": "Lukso Creators",
                "type": "token",
                "symbol": "LUK",
                "address": "0x74654920356257981f6b63A65AD72d4D9bc21929"
            },
            {
                "name": "Lukso Citizens",
                "type": "token",
                "symbol": "LYXCTZNS",
                "address": "0x754a5D007d5F1188Ef0db892ee115a7c01b38fA3"
            },
            {
                "name": "Luksouls",
                "type": "token",
                "symbol": "LUK",
                "address": "0x719B36427C9868162dF1b4c9e6dDc28f5c36D72d"
            },
            {
                "name": "LuksoLIama",
                "type": "token",
                "symbol": "LLI",
                "address": "0xF9Cd332aD87dedB1dA33ADffeE
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "lukso-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 & contract info (address=).",
            "GET /v1/transaction": "Transaction detail (hash=)."
        },
        "description": "Live LUKSO (LYX) mainnet on-chain data via Blockscout: network stats, a gas oracle (gwei), recent blocks and block detail, address balances, transaction detail, ERC-20/LSP token detail and a universal search across addresses, tokens, blocks and transactions. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:57.411Z",
        "request_id": "5c630a66-13cf-409c-96e4-73cfc2d5f395"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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