# Homeverse Chain API
> Live on-chain data for Homeverse mainnet (a gaming Verse-Layer L2 on Oasys, native OAS) 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/game-token detail by contract, and a universal search across addresses, tokens, blocks and transactions. Real Layer-2 chain data with the rotating proxy as automatic fallback — 9 endpoints. Ideal for wallets, explorers, game and NFT tooling, portfolio trackers and on-chain monitoring on Homeverse.

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

## Pricing
- **Free** (Free) — 4,500 calls/Mo, 2 req/s
- **Basic** ($8/Mo) — 107,500 calls/Mo, 8 req/s
- **Pro** ($26/Mo) — 588,000 calls/Mo, 20 req/s
- **Mega** ($72/Mo) — 2,880,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/homeverse-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": null,
        "slow": null,
        "unit": "gwei",
        "average": null,
        "gas_used_today": "102144013"
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:35.207Z",
        "request_id": "62b7802c-3329-45df-a109-a8ce27f201c8"
    },
    "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/homeverse-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": null,
            "slow": null,
            "average": null
        },
        "total_blocks": 2268766,
        "coin_price_usd": null,
        "gas_used_today": "102144013",
        "market_cap_usd": 0,
        "total_addresses": "53924",
        "total_transactions": "2268774",
        "transactions_today": "2515",
        "network_utilization_percent": 0.4122556363636364
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:35.590Z",
        "request_id": "bb4466ca-ba42-4bd8-bc70-42185298989b"
    },
    "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: `2268000`
- `hash` (query, optional, string) — Block hash (0x + 64 hex)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xfa0f66f65a1ee58df32773682434530593dba99732f5bb30abedc07d199603f1",
            "size": 914,
            "miner": "0x0000000000000000000000000000000000000000",
            "height": 2268000,
            "gas_used": 38025,
            "tx_count": 1,
            "gas_limit": 11000000,
            "timestamp": "2026-06-08T09:56:09.000000Z",
            "burnt_fees": "0",
            "difficulty": "2",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:35.969Z",
        "request_id": "f4776add-2722-4062-b554-62aa22eaa048"
    },
    "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/homeverse-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x030dffbfdfe4263def64609b643b2edc9f4f39d033470ad0794ee5ea48320c57",
                "size": 914,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 2268880,
                "gas_used": 38025,
                "tx_count": 1,
                "gas_limit": 11000000,
                "timestamp": "2026-06-08T18:21:16.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x79c98f13000911b4553ede4077e7dc184ec0e5e060ce430546c56e332ea0cb34",
                "size": 914,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 2268879,
                "gas_used": 38025,
                "tx_count": 1,
                "gas_limit": 11000000,
                "timestamp": "2026-06-08T18:21:16.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xf3da4c33ad8c7fec2229e2018d5eaef86398e211ac35614f3907347be58c419a",
                "size": 914,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 2268878,
                "gas_used": 38013,
                "tx_count": 1,
                "gas_limit": 11000000,
                "timestamp"
…(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: `0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
            "name": null,
            "token": null,
            "creator": null,
            "balance_oas": 0.1,
            "balance_wei": "100000000000000000",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:37.183Z",
        "request_id": "2224e437-a261-4118-bfa9-a39476049387"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x3c2269811836af69497E5F486A85D7316753cf62",
            "from": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
            "hash": "0x7c317d8bca7a841b2ab91c56dbced386035ea1f35e97a1442e2cd99617ae5b9c",
            "type": null,
            "block": 2268348,
            "nonce": 1528860,
            "method": "0x7dc438a4",
            "status": "ok",
            "fee_oas": 0,
            "fee_wei": "0",
            "gas_used": 43152,
            "gas_price": "0",
            "timestamp": "2026-06-08T12:56:10.000000Z",
            "value_oas": 0,
            "value_wei": "0",
            "confirmations": 533
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:37.566Z",
        "request_id": "e0f424a1-ddfd-4d44-9d0d-407b9c1ff537"
    },
    "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: `0x7c6b91D9Be155A6Db01f749217d76fF02A7227F2`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Brave Power Crystal",
            "type": "ERC-20",
            "symbol": "BPC",
            "address": "0x7c6b91D9Be155A6Db01f749217d76fF02A7227F2",
            "holders": 1848,
            "decimals": 18,
            "total_supply": "600890085826918854295191544",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:37.940Z",
        "request_id": "4d801ca5-9bcd-4f28-9ff0-aa6c9846692f"
    },
    "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: `home`

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

**Response:**
```json
{
    "data": {
        "count": 4,
        "query": "home",
        "results": [
            {
                "name": "CoinMusme Oasys Home Verse",
                "type": "token",
                "symbol": "MSMNFT",
                "address": "0x98C905f3521d7fdc0Dedde40edDA805A3fD4DcA1"
            },
            {
                "name": "HomeToken",
                "type": "token",
                "symbol": "HMV",
                "address": "0xd92EC358Bc75CB9d6702aA04E69727dB38373241"
            },
            {
                "name": "S9Y_Homeverse",
                "type": "token",
                "symbol": "S9YHOME",
                "address": "0x4262Fc2c23f486f06ceDb4e509Cc678B6a6660DD"
            },
            {
                "name": "CoinMusme Oasys Home Verse",
                "type": "token",
                "symbol": "MSMNFT",
                "address": "0xE3dc0e84a15951C094D5EfbB7814264a2af1602C"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:38.303Z",
        "request_id": "439974c8-e5e6-4fca-aa9c-f217af01a1ff"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "homeverse-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 Homeverse (OAS) Oasys Verse 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:38.545Z",
        "request_id": "9e70c852-7415-4d5e-b086-ebd4749ea120"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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