# Ronin API
> Live Ronin on-chain data via Blockscout. Ronin is a gaming-focused EVM blockchain, home of Axie Infinity; gas and balances are in RON. Network stats, gas prices, latest blocks, a block by height or hash, address detail with RON balance, a transaction by hash, ERC-20 token metadata and a universal search across addresses, tokens, blocks and transactions. Real data, no key.

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

## Pricing
- **Free** (Free) — 2,050 calls/Mo, 1 req/s
- **Basic** ($16/Mo) — 87,500 calls/Mo, 10 req/s
- **Pro** ($49/Mo) — 575,000 calls/Mo, 20 req/s
- **Mega** ($156/Mo) — 2,900,000 calls/Mo, 50 req/s

## Endpoints

### Network

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

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

**Response:**
```json
{
    "data": {
        "fast": 68.13,
        "slow": 28.2,
        "unit": "gwei",
        "average": 31.59,
        "gas_used_today": "160016255558"
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:23.133Z",
        "request_id": "21a675da-bd13-419b-a8c6-ae4e3a548149"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Network statistics

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 67.66,
            "slow": 28.13,
            "average": 31.48
        },
        "total_blocks": 1144078,
        "coin_price_usd": null,
        "gas_used_today": "160016255558",
        "market_cap_usd": 0,
        "total_addresses": "435104",
        "total_transactions": "5052618",
        "transactions_today": "189722",
        "network_utilization_percent": 2.306888333333333
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:23.449Z",
        "request_id": "fcb1e4fc-b465-4248-abe9-714d98df10cf"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}
```

### Blocks

#### `GET /v1/block` — A block by height or hash

**Parameters:**
- `height` (query, optional, string) — Block height Example: `56710390`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x96be989d5504c57313fa4483de05be03aa45af3e2621038e03e672388e603877",
            "size": 1067,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 56710390,
            "gas_used": 112399,
            "tx_count": 2,
            "gas_limit": 60000000,
            "timestamp": "2026-06-08T03:32:47.000000Z",
            "burnt_fees": "2247980000000000",
            "difficulty": "0",
            "base_fee_per_gas": "20000000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:23.750Z",
        "request_id": "c1678e43-4ed3-45fd-974e-a4758a2b755a"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

#### `GET /v1/blocks` — Latest blocks

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x006b497fe7cba6c50eef45278d845eea152b1522363024bf3bda14b1532821a1",
                "size": 2660,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 56721718,
                "gas_used": 10281525,
                "tx_count": 4,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:50:23.000000Z",
                "burnt_fees": "205630500000000000",
                "difficulty": "0",
                "base_fee_per_gas": "20000000000"
            },
            {
                "hash": "0xbea38fa6ab96fba4ddd7d17a03b9fb0e92ff0cddee85c8375240e9d60a4ba306",
                "size": 1074,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 56721717,
                "gas_used": 167328,
                "tx_count": 2,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:50:21.000000Z",
                "burnt_fees": "3346560000000000",
                "difficulty": "0",
                "base_fee_per_gas": "20000000000"
            },
            {
                "hash": "0xdfebe4d868d1e0363386ed76709782e79f556189737ecb784886d83e722f8adb",
                "size": 2948,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 56721716,
                "gas_used": 317057,
                "tx_count": 3,
     
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Address detail with RON balance

**Parameters:**
- `address` (query, required, string) — Address hash Example: `0x0B7007c13325C48911F73A2daD5FA5dCBf808aDc`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x0B7007c13325C48911F73A2daD5FA5dCBf808aDc",
            "name": "Proxy",
            "token": {
                "name": "USD Coin",
                "type": "ERC-20",
                "symbol": "USDC"
            },
            "creator": null,
            "balance_ron": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:25.028Z",
        "request_id": "c11f41a2-a7d9-4edd-99f3-b795ecf68c1e"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

#### `GET /v1/transaction` — A transaction by hash

**Parameters:**
- `hash` (query, required, string) — Transaction hash Example: `0xd48d8e1d513aa3a3c2b8279ae6e8b93d6a3674ca2f4e9742cb493a6c29c0ad9c`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/ronin-api/v1/transaction?hash=0xd48d8e1d513aa3a3c2b8279ae6e8b93d6a3674ca2f4e9742cb493a6c29c0ad9c"
```

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x4200000000000000000000000000000000000015",
            "from": "0xDeaDDEaDDeAdDeAdDEAdDEaddeAddEAdDEAd0001",
            "hash": "0xd48d8e1d513aa3a3c2b8279ae6e8b93d6a3674ca2f4e9742cb493a6c29c0ad9c",
            "type": 126,
            "block": 56710390,
            "nonce": 1132889,
            "method": "0x3db6be2b",
            "status": "ok",
            "fee_ron": 0,
            "fee_wei": "0",
            "gas_used": 46230,
            "gas_price": "0",
            "timestamp": "2026-06-08T03:32:47.000000Z",
            "value_ron": 0,
            "value_wei": "0",
            "confirmations": 11329
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:25.404Z",
        "request_id": "26f7b391-9678-43f5-b565-ad9278bb69c1"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Tokens

#### `GET /v1/token` — ERC-20 token metadata

**Parameters:**
- `address` (query, required, string) — Token contract address Example: `0x0B7007c13325C48911F73A2daD5FA5dCBf808aDc`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "USD Coin",
            "type": "ERC-20",
            "symbol": "USDC",
            "holders": null,
            "decimals": 6,
            "total_supply": "15180730406887",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:25.744Z",
        "request_id": "128629db-269a-456f-ac8d-b634879c5278"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal on-chain search

**Parameters:**
- `q` (query, required, string) — Address, token, block or tx Example: `USD`

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

**Response:**
```json
{
    "data": {
        "count": 11,
        "query": "USD",
        "results": [
            {
                "name": "USD Coin",
                "type": "token",
                "symbol": "USDC",
                "address": "0x0B7007c13325C48911F73A2daD5FA5dCBf808aDc"
            },
            {
                "name": "Lumi Finance USD",
                "type": "token",
                "symbol": "LUAUSD",
                "address": "0x18d2bDEf572C67127E218c425f546FE64430a92C"
            },
            {
                "name": "USD Coin - Wrapped Ronin",
                "type": "token",
                "symbol": "USDC-WRON",
                "address": "0x4f7687aFFc10857fccD0938ECda0947DE7aD3812"
            },
            {
                "name": "Ronin USD Coin - Ronin Wrapped Ether",
                "type": "token",
                "symbol": "USDC-WETH",
                "address": "0xA7964991f339668107E2b6A6f6b8e8B74Aa9D017"
            },
            {
                "name": "USD Coin - PIXEL",
                "type": "token",
                "symbol": "USDC-PIXEL",
                "address": "0xC717Ae6924A822F50eB9780fA279fdc7ced07771"
            },
            {
                "name": "Lumi Finance USD - Lumi Finance Token",
                "type": "token",
                "symbol": "LUAUSD-LUA",
                "address": "0x7467A7ac7f29C9b654349493B0f41e4EAA2a685a"
            },
            {
                "name": "USD Coin - AEVUM",
                "type":
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "ronin-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, ENS & contract info (address=).",
            "GET /v1/transaction": "Transaction detail (hash=)."
        },
        "description": "Live Ronin on-chain data via Blockscout: network stats, a gas oracle (gwei), recent blocks and block detail, address balances with ENS, transaction detail, ERC-20 token detail and a universal search across addresses, tokens, blocks and transactions. Ronin is a gaming EVM chain (home of Axie Infinity); gas and balances are in RON. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:26.118Z",
        "request_id": "1c182f5a-39d7-461d-b885-85ac8eda4ba9"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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