# Ethereum Classic API
> Live Ethereum Classic on-chain data via Blockscout. Ethereum Classic (ETC) is the original proof-of-work Ethereum chain; gas and balances are in ETC. Network stats, gas prices, latest blocks, a block by height or hash, address detail with ETC 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/etc-api/..."
```

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

**Response:**
```json
{
    "data": {
        "fast": 10.32,
        "slow": 7.87,
        "unit": "gwei",
        "average": 10.32,
        "gas_used_today": "252071623"
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:15.920Z",
        "request_id": "e58ff271-78ec-442e-bb51-8a0688513bb6"
    },
    "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/etc-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 10.32,
            "slow": 7.87,
            "average": 10.32
        },
        "total_blocks": 24714387,
        "coin_price_usd": 7.07,
        "gas_used_today": "252071623",
        "market_cap_usd": 1106876383.473877,
        "total_addresses": "655101715",
        "total_transactions": "143563257",
        "transactions_today": "9159",
        "network_utilization_percent": 0.8051349718147031
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:16.066Z",
        "request_id": "edd75ca0-336d-4e0d-b4bc-13f71f03d016"
    },
    "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: `24714836`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x5377d1f26947f4dd984e0c1cef166712f5c5611f57e5143a4bfc46c8291a4c82",
            "size": 763,
            "miner": "0x5253b33c1313a4449Bc5304A9C55b4CC2Bdf2872",
            "height": 24714836,
            "reward": "2049304100000000000",
            "gas_used": 42000,
            "tx_count": 2,
            "gas_limit": 8000000,
            "timestamp": "2026-06-08T00:46:56.000000Z",
            "burnt_fees": "0",
            "difficulty": "2690672224353474",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:16.200Z",
        "request_id": "cf388da4-8a89-4d0a-a5eb-cac372455cd0"
    },
    "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/etc-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xfe2b00c0d6884d336506280572db9e2dd575816c983de7357c0090f458d56040",
                "size": 536,
                "miner": "0x6e4f3F1C81b7016c3DeB8b2D434209B926D21AA2",
                "height": 24714960,
                "reward": "2048000000000000000",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T01:17:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "2665741730919255",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x5851f2311e1e0e7e2ace6803d152f9aceb5f551c5be66c2b192432149777a7c6",
                "size": 1984,
                "miner": "0x981217f3FcC2CD5128e01BCFFaa14f0c7E729bdc",
                "height": 24714959,
                "reward": "2112168000000000000",
                "gas_used": 168000,
                "tx_count": 8,
                "gas_limit": 8007811,
                "timestamp": "2026-06-08T01:17:31.000000Z",
                "burnt_fees": "0",
                "difficulty": "2664440734466879",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x48579749de9bbb6079541fc0ab22392c237a566b3bc7b84ee43528e525790315",
                "size": 541,
                "miner": "0x406177B983C28eb720827985eF5953e8430d4E95",
                "height": 24714958,
     
…(truncated, see openapi.json for full schema)
```

### Accounts

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

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xC1Be9a4D5D45BeeACAE296a7BD5fADBfc14602C4",
            "name": "USD Coin",
            "token": {
                "name": "USD Coin",
                "type": "ERC-20",
                "symbol": "USDC"
            },
            "creator": "0xfA9dA51631268A30Ec3DDd1CcBf46c65FAD99251",
            "balance_eth": 0,
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:16.905Z",
        "request_id": "98da2801-f0ab-4f6a-bccb-55d3af4e4447"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x3C08ec00E609529428dB774566808586e33Be43c",
            "from": "0xFe326Df1D28B32833BB415e46a3cD12AB885Ab99",
            "hash": "0x58430ed07254750bba95eeba91de0b74a13720d559cefdc3246bb239bcd854e8",
            "type": 0,
            "block": 24714836,
            "nonce": 185,
            "method": null,
            "status": "ok",
            "fee_eth": 0.0006531,
            "fee_wei": "653100000000000",
            "gas_used": 21000,
            "gas_price": "31100000000",
            "timestamp": "2026-06-08T00:46:56.000000Z",
            "value_eth": 2.048221714,
            "value_wei": "2048221714000000000",
            "confirmations": 125
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:17.189Z",
        "request_id": "cfadea4c-2e0c-48fe-9fb7-d0e0941a2a83"
    },
    "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: `0xC1Be9a4D5D45BeeACAE296a7BD5fADBfc14602C4`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "USD Coin",
            "type": "ERC-20",
            "symbol": "USDC",
            "holders": null,
            "decimals": 6,
            "total_supply": "11096115653",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:17.306Z",
        "request_id": "7be0147b-9070-4371-8df9-a3f125b223f3"
    },
    "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: `USDC`

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

**Response:**
```json
{
    "data": {
        "count": 11,
        "query": "USDC",
        "results": [
            {
                "name": "USD Coin",
                "type": "token",
                "symbol": "USDC",
                "address": "0xC1Be9a4D5D45BeeACAE296a7BD5fADBfc14602C4"
            },
            {
                "name": "USD//C",
                "type": "token",
                "symbol": "USDC",
                "address": "0xa241971df75dD4B0749C825f38db4cc677F24E0E"
            },
            {
                "name": "USDCETC",
                "type": "token",
                "symbol": "USDCe",
                "address": "0xd71b69fa4b3226F31b412339e9c565eE3dae63Bb"
            },
            {
                "name": "USDC",
                "type": "token",
                "symbol": "USDC.ls",
                "address": "0xE4F82AE8770649e9aE364B7aB91972c915e5be8d"
            },
            {
                "name": "USDC",
                "type": "token",
                "symbol": "USDC.ls",
                "address": "0xFFe9122E2ccb59C3Ae7f631BCd29036e2dab3489"
            },
            {
                "name": "USDC",
                "type": "token",
                "symbol": "USDC.cx",
                "address": "0x91319054B6A569D17825B43f746fB42c613Db42c"
            },
            {
                "name": "USDC",
                "type": "token",
                "symbol": "USDC.cy",
                "address": "0x3651bF9502d7099Dbd16f6968E467D86C8B3c99D"
          
…(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/etc-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "service": "etc-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 Ethereum Classic (ETC) 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. Ethereum Classic is the original proof-of-work Ethereum chain; gas and balances are in ETC. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:17.821Z",
        "request_id": "5734d341-3d8e-4f04-9bf0-cfc5592f59b4"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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