# Electroneum Chain API
> Live on-chain data for Electroneum Smart Chain — an EVM Layer 1 built for mobile payments — 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, validator and timestamp. The address endpoint returns any account's ETN balance, nonce, contract flag and token holdings; transaction resolves a tx by hash with its from/to, value in ETN, 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 ETN, 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/electroneum-api/..."
```

## Pricing
- **Free** (Free) — 4,400 calls/Mo, 2 req/s
- **Basic** ($28/Mo) — 132,000 calls/Mo, 8 req/s
- **Pro** ($85/Mo) — 770,000 calls/Mo, 20 req/s
- **Mega** ($285/Mo) — 4,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/electroneum-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 1.01,
        "slow": 1.01,
        "unit": "gwei",
        "average": 1.01,
        "gas_used_today": "7080762272"
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:17.427Z",
        "request_id": "d9682c90-2f2a-4249-a003-773e68792a2a"
    },
    "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/electroneum-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 1.01,
            "slow": 1.01,
            "average": 1.01
        },
        "total_blocks": 14160208,
        "coin_price_usd": 0.0008814,
        "gas_used_today": "7080762272",
        "market_cap_usd": 15847411.236659184,
        "total_addresses": "1784758",
        "total_transactions": "127997482",
        "transactions_today": "321746",
        "network_utilization_percent": 1.6404459333333334
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:17.654Z",
        "request_id": "a53664d7-00d7-4e68-9ef2-342ebc812ff7"
    },
    "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: `14158506`
- `hash` (query, optional, string) — Block hash (alternative to height)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x72473827a65eefad55cabc45f9775cb617ff82684e0edd4312d1d8760996dcc7",
            "size": 3953,
            "miner": "0x135ec2bc4C04935CCd53967a072562120E4A3f92",
            "height": 14158506,
            "reward": "483000000000000",
            "gas_used": 483000,
            "tx_count": 23,
            "gas_limit": 30000000,
            "timestamp": "2026-06-08T06:25:29.000000Z",
            "burnt_fees": "3381000",
            "difficulty": "1",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:17.882Z",
        "request_id": "4b3b64eb-d0ed-49e3-8069-1f4d7ae67a38"
    },
    "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/electroneum-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x75863aff6ecd92062514511e9e31386bf05c7f75fdb59bac233dd6d90512c618",
                "size": 4679,
                "miner": "0x915956a26Fd7EE449D37ec93bBCfC5cAD5ac8E27",
                "height": 14160951,
                "reward": "609000000000000",
                "gas_used": 609000,
                "tx_count": 29,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:14.000000Z",
                "burnt_fees": "4263000",
                "difficulty": "1",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0xe5e09f25efc5f1de312e00a122df97d15ffcecc38d8b08cfe1d858faf019fbc1",
                "size": 3950,
                "miner": "0x83FF6272D1de08Ad8D492167412f1f329bd805F3",
                "height": 14160950,
                "reward": "483000000000000",
                "gas_used": 483000,
                "tx_count": 23,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:09.000000Z",
                "burnt_fees": "3381000",
                "difficulty": "1",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0xc969f6ff4ab9b5c25fef517205f02fe02dba2e2ed1ba3b73bbaeb5aaee7e8001",
                "size": 3347,
                "miner": "0x7779aB2Cb675D7A31714e86d01bD7a56a03f41d8",
                "height": 14160949,
                "rewar
…(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: `0x720A1c84cf8D6F0b55202C8A650382785655aa06`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x720A1c84cf8D6F0b55202C8A650382785655aa06",
            "name": null,
            "token": null,
            "creator": null,
            "balance_etn": 8.934017962114293,
            "balance_wei": "8934017962114292922",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:18.679Z",
        "request_id": "449dde99-6d43-4e6c-8b83-04b21a0b28ab"
    },
    "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: `0x9d337a3899d3421b22d96726530aa0ea8a6c85a0806bf097175efc418fc96878`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x7CB0C78C4FBc4de54544ebd101FAAC4771DEdC70",
            "from": "0x720A1c84cf8D6F0b55202C8A650382785655aa06",
            "hash": "0x9d337a3899d3421b22d96726530aa0ea8a6c85a0806bf097175efc418fc96878",
            "type": 2,
            "block": 14158506,
            "nonce": 430,
            "method": null,
            "status": "ok",
            "fee_etn": 2.1000000147e-5,
            "fee_wei": "21000000147000",
            "gas_used": 21000,
            "gas_price": "1000000007",
            "timestamp": "2026-06-08T06:25:29.000000Z",
            "value_etn": 9.11982236211444,
            "value_wei": "9119822362114439922",
            "confirmations": 2446
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:18.880Z",
        "request_id": "d2f768e2-942d-423a-bae1-0eb8231eb06d"
    },
    "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: `0x043fAa1b5C5FC9a7dc35171f290c29ECDE0cCff1`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "ElectroSwap",
            "type": "ERC-20",
            "symbol": "BOLT",
            "address": "0x043fAa1b5C5FC9a7dc35171f290c29ECDE0cCff1",
            "holders": 556,
            "decimals": 18,
            "total_supply": "100000000000000000000000000",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:19.088Z",
        "request_id": "0d5ef14f-cd2a-40ff-b99c-e9035c7f46d5"
    },
    "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: `BOLT`

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

**Response:**
```json
{
    "data": {
        "count": 8,
        "query": "BOLT",
        "results": [
            {
                "name": "ElectroSwap",
                "type": "token",
                "symbol": "BOLT",
                "address": "0x043fAa1b5C5FC9a7dc35171f290c29ECDE0cCff1"
            },
            {
                "name": "BOLT Jar",
                "type": "token",
                "symbol": "JAR",
                "address": "0x947321143E176DC02FD4Ac82d5688759dCAb83ed"
            },
            {
                "name": "BOLT on Steriod",
                "type": "token",
                "symbol": "$BOLT",
                "address": "0xc6721b517791ed76FCD133DdFa178BbFea358A66"
            },
            {
                "name": "ElectroSwap",
                "type": "token",
                "symbol": "$BOLT",
                "address": "0xec8b6DF0eCC86954137403Cc30be9c2e020BfC6F"
            },
            {
                "name": "Blue Lightning",
                "type": "token",
                "symbol": "BOLT",
                "address": "0x3cca6Bc6F0abaE8881194b784A95A0097A379F89"
            },
            {
                "name": "Bolt on Steroid",
                "type": "token",
                "symbol": "sBOLT",
                "address": "0x3B5278ad0dD980B61c6565a0273393a00dfefCF8"
            },
            {
                "name": "The Flamingo Bolt",
                "type": "token",
                "symbol": "FB-001",
                "address": "0x41F69B3E
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "electroneum-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 Electroneum Smart 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. Electroneum Smart Chain is an EVM Layer 1 for mobile payments; gas, balances and fees are in ETN. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:19.392Z",
        "request_id": "a4e156c4-26de-4496-b4aa-9692843d5a6d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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