# Shibarium Chain API
> Live on-chain data for Shibarium mainnet (the Shiba Inu Ethereum L2, native BONE) 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-2 chain data with the rotating proxy as automatic fallback — 9 endpoints. Ideal for wallets, explorers, portfolio trackers, analytics dashboards and on-chain monitoring on Shibarium.

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

## Pricing
- **Free** (Free) — 4,600 calls/Mo, 2 req/s
- **Basic** ($8/Mo) — 112,000 calls/Mo, 8 req/s
- **Pro** ($27/Mo) — 610,000 calls/Mo, 20 req/s
- **Mega** ($73/Mo) — 2,900,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/shibarium-api/v1/gas"
```

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

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

### Blocks

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

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

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

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

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

### Accounts

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

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

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

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

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

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

### Tokens

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

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

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

### Search

#### `GET /v1/search` — Universal search

**Parameters:**
- `q` (query, required, string) — Address, token, block or tx Example: `bone`

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

### Meta

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

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


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