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

**Response:**
```json
{
    "data": {
        "fast": 0.02,
        "slow": 0.02,
        "unit": "gwei",
        "average": 0.02,
        "gas_used_today": "125657736"
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:17.011Z",
        "request_id": "6d9c54f5-281e-493f-9186-497600a2050f"
    },
    "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/shibarium-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.02,
            "slow": 0.02,
            "average": 0.02
        },
        "total_blocks": 17598658,
        "coin_price_usd": 0.04613894,
        "gas_used_today": "125657736",
        "market_cap_usd": 11528983.08053711,
        "total_addresses": "269843244",
        "total_transactions": "1561273326",
        "transactions_today": "1105",
        "network_utilization_percent": 0.0281303
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:17.145Z",
        "request_id": "189ef711-ebea-45d0-848c-a78bedb73324"
    },
    "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: `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"
```

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xbe33dd85e4a5c39b0299499d8f66b7293084c519068a928e02cc06d64c282eea",
            "size": 615,
            "miner": "0x0000000000000000000000000000000000000000",
            "height": 17595000,
            "gas_used": 0,
            "tx_count": 0,
            "gas_limit": 20000000,
            "timestamp": "2026-06-08T10:30:54.000000Z",
            "burnt_fees": "0",
            "difficulty": "3",
            "base_fee_per_gas": "15"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:17.305Z",
        "request_id": "e51ffdf4-f0c1-42d3-b369-01ad0ae011ee"
    },
    "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/shibarium-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xf83dd6dbf2f64c05b683b728e9d2141ea8d8507f2aa2c2f40a43e13b0e883b28",
                "size": 615,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 17599572,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:26:06.000000Z",
                "burnt_fees": "0",
                "difficulty": "3",
                "base_fee_per_gas": "15"
            },
            {
                "hash": "0x0e82386b98204ac95dc5acb72bb61bbcfd1aea826bcf082d2862e00c7d34c9ab",
                "size": 615,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 17599571,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:25:56.000000Z",
                "burnt_fees": "0",
                "difficulty": "3",
                "base_fee_per_gas": "15"
            },
            {
                "hash": "0xd7fa554971c90592ed28c884c16be4cd80c3b764c559a95475af477d4f5f87d3",
                "size": 615,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 17599570,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 20000000,
                "timestamp": "2026-0
…(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: `0xE5eDBD1E25e79fb2F6fd3eaa3Bc692BD19bD500E`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xE5eDBD1E25e79fb2F6fd3eaa3Bc692BD19bD500E",
            "name": null,
            "token": null,
            "creator": null,
            "balance_wei": "941968303300965807767",
            "is_contract": false,
            "is_verified": false,
            "balance_bone": 941.9683033009658
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:18.534Z",
        "request_id": "df8d33c2-8796-488a-9b5a-51a5126d2fab"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x0aa8A20a0E790bd16911460CdD75Bf62A4324aE3",
            "from": "0xE5eDBD1E25e79fb2F6fd3eaa3Bc692BD19bD500E",
            "hash": "0x22889413fb036e318cf59c0ef293e0948205e2794aad2f37014d58cd99aee47d",
            "type": 2,
            "block": 17595529,
            "nonce": 13392,
            "method": "transmit",
            "status": "ok",
            "fee_wei": "1312753654611",
            "fee_bone": 1.312753654611e-6,
            "gas_used": 119089,
            "gas_price": "11023299",
            "timestamp": "2026-06-08T11:26:23.000000Z",
            "value_wei": "0",
            "value_bone": 0,
            "confirmations": 4044
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:19.332Z",
        "request_id": "95df5051-8f3b-4a48-bf9c-c8e478e3ac0a"
    },
    "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: `0x71052BAe71C25C78E37fD12E5ff1101A71d9018F`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "ChainLink Token",
            "type": "ERC-20",
            "symbol": "LINK",
            "address": "0x71052BAe71C25C78E37fD12E5ff1101A71d9018F",
            "holders": 0,
            "decimals": 18,
            "total_supply": "0",
            "exchange_rate_usd": 8.03,
            "circulating_market_cap": "5829459563.552676"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:19.470Z",
        "request_id": "c7b4098d-f3f0-47ea-90ee-50f8defb9699"
    },
    "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: `bone`

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "bone",
        "results": [
            {
                "name": "Wrapped BONE",
                "type": "token",
                "symbol": "WBONE",
                "address": "0x839FdB6cc98342B428E074C1573ADF6D48CA3bFd"
            },
            {
                "name": "Shibarium Wrapped BONE",
                "type": "token",
                "symbol": "WBONE",
                "address": "0xC76F4c819D820369Fb2d7C1531aB3Bb18e6fE8d8"
            },
            {
                "name": "BONES",
                "type": "token",
                "symbol": "BONES",
                "address": "0x5BBDB90dAFc39ac324148075cc73A02355Ccf3C0"
            },
            {
                "name": "Bonelon Mars",
                "type": "token",
                "symbol": "ELON",
                "address": "0x1327Bc16c3Ad5A0a54d72Ef15FB8Da9259FEB7b6"
            },
            {
                "name": "woofswap.finance",
                "type": "token",
                "symbol": "BONE to $1000",
                "address": "0x80AEc6f66f1C0d7D1f7c23a1Bfb66907ABf4601F"
            },
            {
                "name": "BONES",
                "type": "token",
                "symbol": "BONES",
                "address": "0xE1B4134267c2Aa17fE033E5B64576323390bA114"
            },
            {
                "name": "Wrapped BONES",
                "type": "token",
                "symbol": "WBONES",
                "address": "0x21
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "shibarium-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 Shibarium (BONE) L2 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:26:20.309Z",
        "request_id": "06b427a8-fd3d-4726-98fe-996b47c6898a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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