# Kaia API
> Live EVM on-chain data for Kaia (chain id 8217) — the public Layer-1 formed by the merger of Klaytn and Finschia, whose native token is KAIA — served directly from public 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 KAIA balance and outgoing transaction count for any address, converted from base wei (18 decimals) into whole KAIA 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 analytics apps across the Kaia, Klaytn and Finschia 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/kaia-api/..."
```

## Pricing
- **Free** (Free) — 370 calls/Mo, 2 req/s
- **Starter** ($13/Mo) — 16,400 calls/Mo, 8 req/s
- **Pro** ($36/Mo) — 86,000 calls/Mo, 16 req/s
- **Mega** ($87/Mo) — 345,000 calls/Mo, 40 req/s

## Endpoints

### Kaia

#### `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/kaia-api/v1/balance?address=0x000000000000000000000000000000000000dEaD"
```

**Response:**
```json
{
    "data": {
        "chain": "Kaia",
        "symbol": "KAIA",
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": 78950705.916373,
        "tx_count": 0,
        "balance_wei": "78950705916373626492157975"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:14.065Z",
        "request_id": "7adbebd7-0166-4ab6-ade0-d07b70d565f8"
    },
    "status": "ok",
    "message": "Kaia 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/kaia-api/v1/block?number=5000000"
```

**Response:**
```json
{
    "data": {
        "hash": "0xfb43a66d24a0574ca7b7089037c66142a422c778a2b8282b5c791b5bbb39ff68",
        "chain": "Kaia",
        "miner": "0xf113ec8c22765d485309cf1d025d1b975245b9f8",
        "number": 5000000,
        "gas_used": 11178746,
        "tx_count": 5,
        "gas_limit": 500000000,
        "timestamp": 1566463357,
        "size_bytes": 37579,
        "parent_hash": "0x87b494c44d7e1e923a200b7de517030d4ad730942966bfc39c6c771a3443de41",
        "timestamp_iso": "2019-08-22T08:42:37.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:14.435Z",
        "request_id": "ceb093b7-1249-40c6-9f61-e1efc6c25ee5"
    },
    "status": "ok",
    "message": "Kaia block retrieved",
    "success": true
}
```

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

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

**Response:**
```json
{
    "data": {
        "chain": "Kaia",
        "source": "eth_gasPrice",
        "symbol": "KAIA",
        "gas_price_wei": 27500000000,
        "gas_price_gwei": 27.5
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:14.787Z",
        "request_id": "f9c9e67a-8451-4f58-824a-701bba740ff7"
    },
    "status": "ok",
    "message": "Kaia gas retrieved",
    "success": true
}
```

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

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

**Response:**
```json
{
    "data": {
        "chain": "Kaia",
        "source": "Kaia EVM RPC",
        "symbol": "KAIA",
        "chain_id": 8217,
        "network_id": 8217,
        "latest_block": 219361647,
        "client_version": "Klaytn/v2.2.2/linux-amd64/go1.25.3"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.166Z",
        "request_id": "68f5549d-251b-4c78-b266-aa56ba45e97d"
    },
    "status": "ok",
    "message": "Kaia status retrieved",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "api": "Kaia API",
        "chain": "Kaia",
        "source": "Kaia EVM JSON-RPC nodes",
        "symbol": "KAIA",
        "chain_id": 8217,
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Live EVM on-chain data for Kaia — the Layer-1 formed by the merger of Klaytn and Finschia, native token KAIA.",
        "documentation": "https://kaia-api.oanor.dev"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:15.274Z",
        "request_id": "f81db74a-e828-425c-88be-1cc5ff145ffa"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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