# HeLa Chain API
> Live on-chain data for HeLa mainnet (the HeLa Labs EVM Layer-1 with native stablecoin gas, native HLUSD) 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 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, payments and DeFi tooling, portfolio trackers and on-chain monitoring on HeLa.

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

## Pricing
- **Free** (Free) — 4,250 calls/Mo, 2 req/s
- **Basic** ($7/Mo) — 104,000 calls/Mo, 8 req/s
- **Pro** ($25/Mo) — 575,000 calls/Mo, 20 req/s
- **Mega** ($70/Mo) — 2,820,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/hela-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 100,
        "slow": 100,
        "unit": "gwei",
        "average": 100,
        "gas_used_today": "178005753"
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:18.777Z",
        "request_id": "f0c3cdfe-443f-402f-bbc8-b5adabffe656"
    },
    "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/hela-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 100,
            "slow": 100,
            "average": 100
        },
        "total_blocks": 517406,
        "coin_price_usd": null,
        "gas_used_today": "178005753",
        "market_cap_usd": 0,
        "total_addresses": "55928",
        "total_transactions": "1040232",
        "transactions_today": "4487",
        "network_utilization_percent": 2.2867414
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:19.278Z",
        "request_id": "963b4e58-b039-41d0-a65e-c1b861d0f121"
    },
    "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: `517000`
- `hash` (query, optional, string) — Block hash (0x + 64 hex)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xdef43effe4492d343f588d78a463392f0c0ae041b0f941c5b192ded5a0a20d98",
            "size": 1749,
            "miner": "0x0000000000000000000000000000000088888888",
            "height": 517000,
            "gas_used": 28578,
            "tx_count": 1,
            "gas_limit": 10000000,
            "timestamp": "2026-06-08T06:10:04.000000Z",
            "burnt_fees": "0",
            "difficulty": "0",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:19.705Z",
        "request_id": "f0ebbf46-d3b6-4d02-b8e9-cf1340217d09"
    },
    "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/hela-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xcfa5a8e79440282c5d417ac1476c2f7a1cac6be03d762276c498e5bc4ffac012",
                "size": 1168,
                "miner": "0x0000000000000000000000000000000088888888",
                "height": 517406,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T17:44:03.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xff0a5009fd02e2667d583b5b6efee741e95d7e871a1e4bac31268493da531073",
                "size": 1168,
                "miner": "0x0000000000000000000000000000000088888888",
                "height": 517405,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T17:43:58.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xb27cc155e29f91eff7dbcc11958dc7b6b510e37a3a22a7638965c3c1388533bd",
                "size": 2083,
                "miner": "0x0000000000000000000000000000000088888888",
                "height": 517404,
                "gas_used": 436761,
                "tx_count": 1,
                "gas_limit": 10000000,
                "timestamp": "2026
…(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: `0xE05AC44A667F6e9Cb1598e373ab91B24474666e5`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xE05AC44A667F6e9Cb1598e373ab91B24474666e5",
            "name": null,
            "token": null,
            "creator": null,
            "balance_wei": "14085200000000000",
            "is_contract": false,
            "is_verified": false,
            "balance_hlusd": 0.0140852
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:20.505Z",
        "request_id": "dffca62f-7efb-4e7d-9a21-938654f95b65"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x698069f01C8F986649edBe2ad7f43513FA9C245d",
            "from": "0xE05AC44A667F6e9Cb1598e373ab91B24474666e5",
            "hash": "0xcda276d6769ceb2a62e1423938a408421517b7cc58f11e5231ef2bd808e720f3",
            "type": 0,
            "block": 517378,
            "nonce": 2223,
            "method": "buy",
            "status": "ok",
            "fee_wei": "43706500000000000",
            "gas_used": 437065,
            "fee_hlusd": 0.0437065,
            "gas_price": "100000000000",
            "timestamp": "2026-06-08T13:38:14.000000Z",
            "value_wei": "0",
            "value_hlusd": 0,
            "confirmations": 29
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:20.865Z",
        "request_id": "1523fff0-3110-45f3-982b-e77f2e7ea4ee"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Tokens

#### `GET /v1/token` — ERC-20 token detail

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

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "GREEN GOD CANDLE",
            "type": "ERC-20",
            "symbol": "GGC",
            "address": "0xbEBD8cEB78Ac7f962CcE5a53Cf19DC89315EbE04",
            "holders": 1437,
            "decimals": 18,
            "total_supply": "1000000000000000000000000000",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:21.171Z",
        "request_id": "4ec0368b-db41-4173-8ece-4e3ebe0b8102"
    },
    "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: `hela`

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

**Response:**
```json
{
    "data": {
        "count": 28,
        "query": "hela",
        "results": [
            {
                "name": "HELA",
                "type": "token",
                "symbol": "HELA",
                "address": "0x017c6215c4a06047f630E133e6130FB88C05C55E"
            },
            {
                "name": "Hela USD Coin",
                "type": "token",
                "symbol": "hUSDC",
                "address": "0xf5b85320a772b436cb8105441a3dB9bA29437B4a"
            },
            {
                "name": "Hela Tether",
                "type": "token",
                "symbol": "hUSDT",
                "address": "0xD3442073FA7cCF8a7c39d95dC125Cd59497aA078"
            },
            {
                "name": "HeLa Zealy NFT",
                "type": "token",
                "symbol": "HeLaZealyNFT",
                "address": "0xEC43764EA00dF69519A6840d5021a7C2bbD41bD4"
            },
            {
                "name": "Provident HeLa Variable Debt HLUSD",
                "type": "token",
                "symbol": "variableDebtHeLaHLUSD",
                "address": "0xDb6B68C57D90C958f3e6612493C50Df89D17D1e4"
            },
            {
                "name": "Provident HeLa Variable Debt USDC",
                "type": "token",
                "symbol": "variableDebtHeLaUSDC",
                "address": "0x2B2fA91f4d6bc89c6EAa5bb2748BDc92D221b42d"
            },
            {
                "name": "Community Member of HeLa",
                "type":
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "hela-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 HeLa (HLUSD) mainnet on-chain data via Blockscout: network stats, a gas oracle (gwei), recent blocks and block detail, address balances, transaction detail, ERC-20 token detail and a universal search across addresses, tokens, blocks and transactions. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:21.582Z",
        "request_id": "6c69576f-631c-4ee2-9575-1b42fd39e76e"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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