# EDU Chain API
> Live EDU Chain on-chain data via Blockscout. EDU Chain is Open Campus' education-focused Ethereum L2; gas and balances are in EDU. Network stats, gas prices, latest blocks, a block by height or hash, address detail with EDU 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/educhain-api/..."
```

## Pricing
- **Free** (Free) — 1,500 calls/Mo, 1 req/s
- **Basic** ($11/Mo) — 74,000 calls/Mo, 10 req/s
- **Pro** ($35/Mo) — 490,000 calls/Mo, 20 req/s
- **Mega** ($112/Mo) — 2,540,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/educhain-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 0.35,
        "slow": 0.35,
        "unit": "gwei",
        "average": 0.35,
        "gas_used_today": "606538637001"
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:02.319Z",
        "request_id": "76d89fef-f305-42f6-9425-283b10091671"
    },
    "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/educhain-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.35,
            "slow": 0.35,
            "average": 0.35
        },
        "total_blocks": 66931674,
        "coin_price_usd": null,
        "gas_used_today": "606538637001",
        "market_cap_usd": 0,
        "total_addresses": "2874612",
        "total_transactions": "240841622",
        "transactions_today": "1045015",
        "network_utilization_percent": 1.7583681533039908e-7
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:02.504Z",
        "request_id": "a5e31c40-a7e3-4009-9c3c-81fa299931b9"
    },
    "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: `66869196`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xee65ee58d539bda0255a6a70411781ac6a65c02d8b5047502e4341ba31378346",
            "size": 12115,
            "miner": "0xA4b000000000000000000073657175656e636572",
            "height": 66869196,
            "gas_used": 977776,
            "tx_count": 2,
            "gas_limit": 1125899906842624,
            "timestamp": "2026-06-08T04:21:29.000000Z",
            "burnt_fees": "9777760000000",
            "difficulty": "1",
            "base_fee_per_gas": "10000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:02.705Z",
        "request_id": "d46378bf-2e5e-46de-8313-a24a90cb4d74"
    },
    "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/educhain-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xf30b2f0cd78173109fc2b1d0dc6a59ccd9f86b7bc404a3824d0b118c2e1c8092",
                "size": 69204,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 66946187,
                "gas_used": 5938817,
                "tx_count": 7,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:01.000000Z",
                "burnt_fees": "2406883753760000",
                "difficulty": "1",
                "base_fee_per_gas": "405280000"
            },
            {
                "hash": "0xc0c90a8ad464472d6e01958a6853648de0d491d24364501a78e8ada7b88442be",
                "size": 12974,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 66946186,
                "gas_used": 1280782,
                "tx_count": 3,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:01.000000Z",
                "burnt_fees": "518587351018000",
                "difficulty": "1",
                "base_fee_per_gas": "404899000"
            },
            {
                "hash": "0xef3f2d647b5ef5a96e4b0b190b27ea1ce643d83d8e8b21e725b886afff6fd58b",
                "size": 12117,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 66946185,
                "gas_used": 989797,
                "tx_coun
…(truncated, see openapi.json for full schema)
```

### Accounts

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

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342",
            "name": "ClonableBeaconProxy",
            "token": {
                "name": "EDU Chain Bridged USDC",
                "type": "ERC-20",
                "symbol": "USDC"
            },
            "creator": "0x44c0da87e4443F275503aB429bEE40fe265b59AF",
            "balance_edu": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:04.746Z",
        "request_id": "e47f8300-3bf0-413a-8a4e-fed3b32ef7ec"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x00000000000000000000000000000000000A4B05",
            "from": "0x00000000000000000000000000000000000A4B05",
            "hash": "0x73a8048cc61052c02e9b00e7398e3a4e9b5ccb388351df2d4f10fbfb5e11864b",
            "type": 106,
            "block": 66869196,
            "nonce": 0,
            "method": "startBlock",
            "status": "ok",
            "fee_edu": 0,
            "fee_wei": "0",
            "gas_used": 0,
            "gas_price": "10000000",
            "timestamp": "2026-06-08T04:21:29.000000Z",
            "value_edu": 0,
            "value_wei": "0",
            "confirmations": 77001
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:05.690Z",
        "request_id": "e165e8fe-fd71-4651-8cee-7eb1abd67d7b"
    },
    "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: `0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": "https://assets.coingecko.com/coins/images/6319/standard/usdc.png?1696506694",
            "name": "EDU Chain Bridged USDC",
            "type": "ERC-20",
            "symbol": "USDC",
            "holders": null,
            "decimals": 6,
            "total_supply": "181780826701",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:05.854Z",
        "request_id": "d81ce7be-6d29-4b60-a93b-1c30e320e9f1"
    },
    "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/educhain-api/v1/search?q=USD"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "USD",
        "results": [
            {
                "name": "EDU Chain Bridged USDC",
                "type": "token",
                "symbol": "USDC",
                "address": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342"
            },
            {
                "name": "EDU Chain Bridged USDT",
                "type": "token",
                "symbol": "USDT",
                "address": "0x7277Cc818e3F3FfBb169c6Da9CC77Fc2d2a34895"
            },
            {
                "name": "Stargate Bridged USDC",
                "type": "token",
                "symbol": "USDC.e",
                "address": "0x12a272A581feE5577A5dFa371afEB4b2F3a8C2F8"
            },
            {
                "name": "Tether USD",
                "type": "token",
                "symbol": "USDT",
                "address": "0x7bA0F2cb1608207031839F427Ce4dBC8d88F33C7"
            },
            {
                "name": "USD Coin",
                "type": "token",
                "symbol": "USDC",
                "address": "0xC7d35f55E524763f986459A362e509c2BA278512"
            },
            {
                "name": "Blend USDC",
                "type": "token",
                "symbol": "bEduUSDC",
                "address": "0x7cc8157b45A927e0e313A245958441B43fed2225"
            },
            {
                "name": "Blend USDT",
                "type": "token",
                "symbol": "bEduUSDT",
                "add
…(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/educhain-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "service": "educhain-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 EDU Chain 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. EDU Chain is Open Campus' education-focused Ethereum L2; gas and balances are in EDU. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:06.582Z",
        "request_id": "08b7d4a6-9d55-4630-8d58-d6b40c0546c9"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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