# Hemi API
> Live Hemi on-chain data via Blockscout. Hemi is a modular Layer 2 supernetwork powered by both Bitcoin and Ethereum; 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/hemi-api/..."
```

## Pricing
- **Free** (Free) — 1,750 calls/Mo, 1 req/s
- **Basic** ($13/Mo) — 83,000 calls/Mo, 10 req/s
- **Pro** ($41/Mo) — 525,000 calls/Mo, 20 req/s
- **Mega** ($134/Mo) — 2,750,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/hemi-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 0.01,
        "slow": 0.01,
        "unit": "gwei",
        "average": 0.01,
        "gas_used_today": "1098909881"
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:57.298Z",
        "request_id": "284fa7f9-e5e4-477d-a3db-fefbbac81980"
    },
    "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/hemi-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.01,
            "slow": 0.01,
            "average": 0.01
        },
        "total_blocks": 4587128,
        "coin_price_usd": 1661.0829650160938,
        "gas_used_today": "1098909881",
        "market_cap_usd": 200466952134.0988,
        "total_addresses": "2612019",
        "total_transactions": "14386657",
        "transactions_today": "11028",
        "network_utilization_percent": 0.38532293333333334
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:57.433Z",
        "request_id": "8eee6329-7502-42b5-8b28-2226bd988404"
    },
    "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: `4584979`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xebf6b9b0857ea657b767e500735b38468d7e1ac253fa6c7603363101c9dd3a69",
            "size": 896,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 4584979,
            "gas_used": 54544,
            "tx_count": 1,
            "gas_limit": 30000000,
            "timestamp": "2026-06-08T02:40:59.000000Z",
            "burnt_fees": "13745088",
            "difficulty": "0",
            "base_fee_per_gas": "252"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:57.597Z",
        "request_id": "70282881-9142-40c3-a4fa-4c3dd04d3666"
    },
    "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/hemi-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x332e79ea0ea0e5291cba0b014c390253e1f643b99c2fb5b6894a21872c548b2c",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587128,
                "gas_used": 54544,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:47.000000Z",
                "burnt_fees": "13745088",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xa656c0643e9ceab93cb6206685c85f0a5e140e36934ef534629ff4ffd25efca8",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587127,
                "gas_used": 54544,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "13745088",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xd0874874aaec7be1c7aa6be5ea90dc177e0e1ae885c425a1525f874e2a85d896",
                "size": 896,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 4587126,
                "gas_used": 54544,
                "tx_count": 1,
                "gas_limit": 30000000,
           
…(truncated, see openapi.json for full schema)
```

### Accounts

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

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA",
            "name": "Bridged USDC (Stargate)",
            "token": {
                "name": "Bridged USDC (Stargate)",
                "type": "ERC-20",
                "symbol": "USDC.e"
            },
            "creator": "0x565786AbE5BA0f9D307AdfA681379F0788bEdEf7",
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:57.972Z",
        "request_id": "1b43c221-1394-41b8-9cd0-eeeaa89f387f"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0x95dd7b65cb078820518152c8aa79918bab4e5c4a56c846c44f074b4deff3ca8f",
            "type": 126,
            "block": 4584979,
            "nonce": 4584981,
            "method": "setL1BlockValuesIsthmus",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 54544,
            "gas_price": "0",
            "timestamp": "2026-06-08T02:40:59.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 2150
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:58.139Z",
        "request_id": "17b00375-1843-4a7c-98c2-c21f3a26d81a"
    },
    "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: `0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Bridged USDC (Stargate)",
            "type": "ERC-20",
            "symbol": "USDC.e",
            "address": "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA",
            "holders": 5513,
            "decimals": 6,
            "total_supply": "427678095003",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:58.284Z",
        "request_id": "13293d2b-4f59-4042-945a-4cd4c15f74d9"
    },
    "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/hemi-api/v1/search?q=USD"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "USD",
        "results": [
            {
                "name": "Bridged USDC (Stargate)",
                "type": "token",
                "symbol": "USDC.e",
                "address": "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA"
            },
            {
                "name": "USDT",
                "type": "token",
                "symbol": "USDT",
                "address": "0xbB0D083fb1be0A9f6157ec484b6C79E0A4e31C2e"
            },
            {
                "name": "ZeroLend USDC",
                "type": "token",
                "symbol": "z0USDC",
                "address": "0x9D6256c132EdE5CEf0C0F2041E81831ae1eA5838"
            },
            {
                "name": "Clearstar USDC.e",
                "type": "token",
                "symbol": "CSUSDCE",
                "address": "0x05c2e246156d37b39a825a25dd08D5589e3fd883"
            },
            {
                "name": "LendOS Hemi USDC",
                "type": "token",
                "symbol": "osHemiUSDC",
                "address": "0x417C0b97d9EF489BD828aD19cf79313E0D5f9294"
            },
            {
                "name": "LendOS Hemi USDT",
                "type": "token",
                "symbol": "osHemiUSDT",
                "address": "0x45f80ae894FC102a2C1E40F7781dB621F554c075"
            },
            {
                "name": "Ploutos Market Hemi USDCe",
                "type": "token",
                "symbol": "LHemiUSD
…(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/hemi-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "service": "hemi-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 Hemi 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. Hemi is a Bitcoin-and-Ethereum supernetwork (modular L2); gas and balances are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:58.522Z",
        "request_id": "a4aaf1d4-ee0d-41c8-8b2f-73d19c61a929"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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