# 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"
```

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

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

### 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"
```

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

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

### 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"
```

#### `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"
```

### 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"
```

### 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"
```

### Meta

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

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


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