# WEMIX API
> Live EVM on-chain data for WEMIX (chain id 1111) — the gaming-focused public Layer-1 built by Wemade, whose native token is WEMIX — served directly from public EVM JSON-RPC nodes with multi-node failover. The status endpoint returns the chain and network id, the latest block height and the node client version. The block endpoint returns a block by number (or the latest) with its hash, parent hash, timestamp, transaction count, gas used and gas limit, miner and size. The gas endpoint returns the current gas price in both wei and gwei. The balance endpoint returns the WEMIX balance and outgoing transaction count for any address, converted from base wei (18 decimals) into whole WEMIX with exact big-integer scaling. Every figure is read live from the chain over JSON-RPC — nothing bundled or modelled — behind a short server-side cache with keep-warm so the feed stays fast and fresh. Ideal for explorers, wallet and dashboard tooling, gas trackers, address monitors and game-economy analytics across the WEMIX ecosystem. Live keyless upstream. 5 endpoints.

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

## Pricing
- **Free** (Free) — 380 calls/Mo, 2 req/s
- **Starter** ($13/Mo) — 16,600 calls/Mo, 8 req/s
- **Pro** ($35/Mo) — 84,000 calls/Mo, 16 req/s
- **Mega** ($85/Mo) — 342,000 calls/Mo, 40 req/s

## Endpoints

### WEMIX

#### `GET /v1/balance` — Address balance & tx count

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

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

**Response:**
```json
{
    "data": {
        "chain": "WEMIX",
        "symbol": "WEMIX",
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": 580200622.914822,
        "tx_count": 0,
        "balance_wei": "580200622914822461677131674"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:05.547Z",
        "request_id": "9875bd85-3c3f-49cd-b579-dd8b53db7eb9"
    },
    "status": "ok",
    "message": "WEMIX balance retrieved",
    "success": true
}
```

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

**Parameters:**
- `number` (query, optional, string) — Block number; omit for latest Example: `5000000`

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

**Response:**
```json
{
    "data": {
        "hash": "0x21fef196b26aa9c3363d87f6cca01acca742d409550926d49a49332a68ba8c83",
        "chain": "WEMIX",
        "miner": "0xc08b5179ce711bde566b4762e83fe98bdb39d5eb",
        "number": 5000000,
        "gas_used": 119290,
        "tx_count": 1,
        "gas_limit": 105000000,
        "timestamp": 1671234808,
        "size_bytes": 4264,
        "parent_hash": "0xe489c167193240db151d468bdc8d419c30059ecb6e50adb8e0258ebecc0e19e6",
        "timestamp_iso": "2022-12-16T23:53:28.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:05.912Z",
        "request_id": "c03a4c2e-0726-4ae9-8624-abdb015064f7"
    },
    "status": "ok",
    "message": "WEMIX block retrieved",
    "success": true
}
```

#### `GET /v1/gas` — Current gas price

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

**Response:**
```json
{
    "data": {
        "chain": "WEMIX",
        "source": "eth_gasPrice",
        "symbol": "WEMIX",
        "gas_price_wei": 100000000001,
        "gas_price_gwei": 100.000000001
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:06.240Z",
        "request_id": "5519e22d-b847-427f-aecc-7f1d78bb7a68"
    },
    "status": "ok",
    "message": "WEMIX gas retrieved",
    "success": true
}
```

#### `GET /v1/status` — Chain status

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

**Response:**
```json
{
    "data": {
        "chain": "WEMIX",
        "source": "WEMIX EVM RPC",
        "symbol": "WEMIX",
        "chain_id": 1111,
        "network_id": 1111,
        "latest_block": 115322146,
        "client_version": "Gwemix/v0.10.10-stable-4931dd3b/linux-amd64/go1.19.13"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:07.056Z",
        "request_id": "c99e47f4-51fd-4039-8550-3e2707c620fd"
    },
    "status": "ok",
    "message": "WEMIX status retrieved",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "api": "WEMIX API",
        "chain": "WEMIX",
        "source": "WEMIX EVM JSON-RPC nodes",
        "symbol": "WEMIX",
        "chain_id": 1111,
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Live EVM on-chain data for WEMIX — the gaming-focused Layer-1 by Wemade, native token WEMIX.",
        "documentation": "https://wemix-api.oanor.dev"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:07.166Z",
        "request_id": "446131d1-8c87-4823-a1e7-3d3c6baa4f85"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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