# Moonbeam API
> Real-time on-chain data for Moonbeam (chain-id 1284) — the Ethereum-compatible smart-contract parachain on Polkadot, fully EVM-compatible with GLMR 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 GLMR balance and transaction count of any address. A keyless, no-account JSON wrapper over the canonical Moonbeam JSON-RPC node — decoded from hex into plain decimals and human-readable GLMR so you do not have to. Ideal for explorers, wallets, dashboards, gas estimators and analytics on Moonbeam.

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

## Pricing
- **Free** (Free) — 4,100 calls/Mo, 3 req/s
- **Basic** ($15/Mo) — 55,500 calls/Mo, 10 req/s
- **Pro** ($38/Mo) — 211,000 calls/Mo, 25 req/s
- **Mega** ($79/Mo) — 884,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/moonbeam-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/moonbeam-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/moonbeam-api/v1/gas"
```

### Accounts

#### `GET /v1/balance` — Native GLMR 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/moonbeam-api/v1/balance?address=0x000000000000000000000000000000000000dEaD"
```

### Meta

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

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


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