# Moonriver API
> Real-time on-chain data for Moonriver (chain-id 1285) — the Ethereum-compatible companion network to Moonbeam, deployed on Kusama, with MOVR as its native token. Query live network status (latest block height, network id, client version), fetch any block by height or the latest one (timestamp, transaction count, gas used / limit, base fee, miner), read the current gas price in wei and gwei, and look up the native MOVR balance and transaction count of any address. A keyless, no-account JSON wrapper over the canonical Moonriver JSON-RPC node — decoded from hex into plain decimals and human-readable MOVR so you do not have to. Ideal for explorers, wallets, dashboards, gas estimators and analytics on Moonriver.

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

## Pricing
- **Free** (Free) — 4,000 calls/Mo, 3 req/s
- **Basic** ($14/Mo) — 58,800 calls/Mo, 10 req/s
- **Pro** ($35/Mo) — 218,000 calls/Mo, 25 req/s
- **Mega** ($75/Mo) — 907,000 calls/Mo, 60 req/s

## Endpoints

### Network

#### `GET /v1/status` — Network status (latest block, chain id, client version)

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

### Blocks

#### `GET /v1/block` — Block by height (or latest)

**Parameters:**
- `number` (query, optional, string) — Block height (decimal or 0x-hex), or "latest" Example: `5000000`

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

### Gas

#### `GET /v1/gas` — Current gas price (wei + gwei)

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

### Accounts

#### `GET /v1/balance` — Native MOVR balance and transaction count of an address

**Parameters:**
- `address` (query, required, string) — 0x-prefixed 40-hex EVM address Example: `0x000000000000000000000000000000000000dEaD`

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

### Meta

#### `GET /v1/meta` — Service metadata

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


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