# Aurora Chain API
> Live on-chain data for Aurora — an EVM running on the NEAR Protocol — via its public Blockscout explorer (no wallet, no key). The stats endpoint returns chain-wide totals (blocks, transactions, addresses, average block time, gas used); gas gives the current gas-price oracle (slow/average/fast). Blocks lists the latest blocks, and a single block resolves by height or by hash with its transaction count, gas, miner and timestamp. The address endpoint returns any account's ETH balance, nonce, contract flag and token holdings; transaction resolves a tx by hash with its from/to, value in ETH, fee, status and block. The token endpoint returns an ERC-20 token's metadata (name, symbol, decimals, total supply, holders) by contract address, and search runs a universal lookup across addresses, tokens, blocks and transactions. Gas, balances, values and fees are denominated in ETH, the native coin. Real on-chain data straight from the explorer, refreshed every call — no key. 9 endpoints. For multi-chain coverage combine with the other oanor chain APIs (Ethereum, Base, Arbitrum and more).

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

## Pricing
- **Free** (Free) — 2,500 calls/Mo, 2 req/s
- **Basic** ($18/Mo) — 97,000 calls/Mo, 8 req/s
- **Pro** ($55/Mo) — 620,000 calls/Mo, 20 req/s
- **Mega** ($185/Mo) — 3,350,000 calls/Mo, 50 req/s

## Endpoints

### Chain

#### `GET /v1/gas` — Gas-price oracle

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

**Response:**
```json
{
    "data": {
        "fast": 0.08,
        "slow": 0.08,
        "unit": "gwei",
        "average": 0.08,
        "gas_used_today": "9314365187"
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:46.923Z",
        "request_id": "2d88f12c-05a4-401d-a529-cb2759892fde"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Chain stats

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.08,
            "slow": 0.08,
            "average": 0.08
        },
        "total_blocks": 201818777,
        "coin_price_usd": null,
        "gas_used_today": "9314365187",
        "market_cap_usd": 0,
        "total_addresses": "12396323",
        "total_transactions": "80433774",
        "transactions_today": "36899",
        "network_utilization_percent": 3.344098331581336e-10
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:47.060Z",
        "request_id": "e243b63b-b6c9-442a-b886-f98d248ff01d"
    },
    "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: `201798184`
- `hash` (query, optional, string) — Block hash (alternative to height)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xb5a52f9f63e539c859975add30a8b4a9c4411a52c3118cbba249b870d3236356",
            "size": 375,
            "miner": "0x0000000000000000000000000000000000000000",
            "height": 201798184,
            "gas_used": 236774,
            "tx_count": 1,
            "gas_limit": 9007199254740991,
            "timestamp": "2026-06-08T05:15:38.000000Z",
            "burnt_fees": "0",
            "difficulty": "0",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:47.175Z",
        "request_id": "22f1b37f-8ec5-4910-8578-fd035b600930"
    },
    "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/aurora-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x3b570de70e4991e4d3a06dc0caf8a4713c787f7593f30b1f37ae4c6eecdb698d",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 201824428,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 9007199254740991,
                "timestamp": "2026-06-08T09:49:43.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x33ec9ff99684c35c2f1a4ae938d91718cee20756cc21a3c803efea060c574a0b",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 201824427,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 9007199254740991,
                "timestamp": "2026-06-08T09:49:43.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xf0841648e7d9a2b6be44a859c429ce9e7cc8bffd66293687ad60604d9448aedd",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 201824426,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 9007199254740991,
               
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Account balance & holdings

**Parameters:**
- `address` (query, required, string) — Account address (0x + 40 hex) Example: `0x039dd386358b25Bd1E7bF1d27A42f5683d5b6700`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x039dd386358b25Bd1E7bF1d27A42f5683d5b6700",
            "name": null,
            "token": null,
            "creator": null,
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:47.404Z",
        "request_id": "2e42de62-c36d-4106-b538-640ae1e031d0"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

**Parameters:**
- `hash` (query, required, string) — Transaction hash (0x + 64 hex) Example: `0xbf3ddbdfa835904b260f07b9b665e53070f67cbcd696dd37703061c82a5b762e`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x7EdA04920F22ba6A2b9f2573fd9a6F6F1946Ff9f",
            "from": "0x039dd386358b25Bd1E7bF1d27A42f5683d5b6700",
            "hash": "0xbf3ddbdfa835904b260f07b9b665e53070f67cbcd696dd37703061c82a5b762e",
            "type": 0,
            "block": 201798184,
            "nonce": 647895,
            "method": "signWithdrawCallback",
            "status": "ok",
            "fee_eth": 0,
            "fee_wei": "0",
            "gas_used": 236774,
            "gas_price": "0",
            "timestamp": "2026-06-08T05:15:38.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 26245
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:47.554Z",
        "request_id": "2e052d56-bd76-44c4-99c3-8096fcaaa88e"
    },
    "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: `0xE4B9e004389d91e4134a28F19BD833cBA1d994B6`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": "https://assets.coingecko.com/coins/images/13422/small/LFRAX.png?1751911193",
            "name": "Legacy Frax Dollar",
            "type": "ERC-20",
            "symbol": "FRAX",
            "holders": null,
            "decimals": 18,
            "total_supply": "48630433241654289244924",
            "exchange_rate_usd": 0.993592,
            "circulating_market_cap": "274079446.5647784"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:47.705Z",
        "request_id": "3361c829-36c1-4a07-b3e7-c42c95125b3b"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal search

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

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

**Response:**
```json
{
    "data": {
        "count": 45,
        "query": "FRAX",
        "results": [
            {
                "name": "Legacy Frax Dollar",
                "type": "token",
                "symbol": "FRAX",
                "address": "0xE4B9e004389d91e4134a28F19BD833cBA1d994B6"
            },
            {
                "name": "Frax USD",
                "type": "token",
                "symbol": "FRXUSD",
                "address": "0x80Eede496655FB9047dd39d9f418d5483ED600df"
            },
            {
                "name": "Wrapped FRAX",
                "type": "token",
                "symbol": "WFRAX",
                "address": "0x64445f0aecC51E94aD52d8AC56b7190e764E561a"
            },
            {
                "name": "Frax",
                "type": "token",
                "symbol": "FRAX",
                "address": "0xDA2585430fEf327aD8ee44Af8F1f989a2A91A3d2"
            },
            {
                "name": "Rose FRAX/Stables",
                "type": "token",
                "symbol": "RoseFraxLP",
                "address": "0x4463A118A2fB34640ff8eF7Fe1B3abAcd4aC9fB7"
            },
            {
                "name": "Rose FRAX/StablesLP",
                "type": "token",
                "symbol": "RoseFraxLP",
                "address": "0xbB5279353d88A25F099A334Ba49CDCb1CF4b5A7c"
            },
            {
                "name": "Frax Share",
                "type": "token",
                "symbol": "FXS",
                "address": "0x
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "aurora-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 Aurora 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. Aurora is an EVM running on the NEAR Protocol; gas, balances and fees are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:47.982Z",
        "request_id": "21dd2f77-7741-4a75-82bd-931fc176914c"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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