# Celo On-Chain API
> Live Celo on-chain data as an API, built on the open Blockscout explorer. Celo (chain id 42220) is a mobile-first, carbon-negative Ethereum-compatible network; its native currency is CELO and it hosts native stablecoins such as cUSD and cEUR. Pull network stats (total blocks and transactions, CELO price, live gas), a gas oracle with slow, average and fast prices in gwei, the most recent blocks and full block detail by height or hash. Look up any address for its balance and contract status, any transaction by hash for its value, fee, status, sender and receiver, and any ERC-20 token by contract for its name, symbol, decimals, holders and USD rate. A universal search resolves addresses, tokens, blocks and transactions in one call. Real on-chain data, no key needed upstream. Ideal for Celo wallets, block explorers, gas trackers, DeFi and stablecoin dashboards and on-chain analytics.

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

## Pricing
- **Free** (Free) — 9,000 calls/Mo, 2 req/s
- **Starter** ($4/Mo) — 118,000 calls/Mo, 8 req/s
- **Pro** ($18/Mo) — 610,000 calls/Mo, 25 req/s
- **Mega** ($67/Mo) — 3,000,000 calls/Mo, 50 req/s

## Endpoints

### Celo

#### `GET /v1/address` — Address balance & contract info

**Parameters:**
- `address` (query, required, string) — A Celo address (0x + 40 hex) Example: `0x765DE816845861e75A25fCA122bb6898B8B1282a`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x765DE816845861e75A25fCA122bb6898B8B1282a",
            "name": "StableTokenProxy",
            "token": {
                "name": "Celo Dollar",
                "type": "ERC-20",
                "symbol": "CUSD"
            },
            "creator": "0xE23a4c6615669526Ab58E9c37088bee4eD2b2dEE",
            "balance_eth": 10.501739049165606,
            "balance_wei": "10501739049165604290",
            "is_contract": true,
            "is_verified": true
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:34.824Z",
        "request_id": "ea96512e-769f-4100-879b-b1090a49ce2e"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

#### `GET /v1/block` — Block detail by height or hash

**Parameters:**
- `height` (query, optional, string) — Block height, e.g. 25000000 Example: `25000000`
- `hash` (query, optional, string) — Block hash (alternative to height)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xf8d968354950561efffe7cb6f3afd2552977089cf154d69fc43c4681658f7a53",
            "size": 18486,
            "miner": "0xbf5049910Db82E8c92B7158c959330BFe5cC135e",
            "height": 25000000,
            "gas_used": 5044549,
            "tx_count": 23,
            "gas_limit": 50000000,
            "timestamp": "2024-04-09T13:49:19.000000Z",
            "burnt_fees": "25222745000000000",
            "difficulty": "0",
            "base_fee_per_gas": "5000000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:34.953Z",
        "request_id": "a56c3e6d-fb6c-45a0-864b-33aed350a300"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

#### `GET /v1/blocks` — The most recent blocks

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x21e0ac62c79a61406123db39f901b6dd2943239ed1a9a532b15467c11a2bbe17",
                "size": 9398,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980751,
                "gas_used": 2548958,
                "tx_count": 9,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:29.000000Z",
                "burnt_fees": "509791600000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x07bbde12c81deadfb98978be9425cc26599b5d2362b2ae96f916e5d0af6f98c4",
                "size": 3552,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980749,
                "gas_used": 506624,
                "tx_count": 4,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T01:18:27.000000Z",
                "burnt_fees": "101324800000000000",
                "difficulty": "0",
                "base_fee_per_gas": "200000000000"
            },
            {
                "hash": "0x53eabd614bf5d1b2883ccef25ef948ac5030c72b32f450fcb689329349828b71",
                "size": 5103,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 68980748,
                "gas_used": 1065696,
                "tx_count": 9,
 
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/gas` — Gas oracle (gwei)

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

**Response:**
```json
{
    "data": {
        "fast": 319.64,
        "slow": 209.98,
        "unit": "gwei",
        "average": 231.41,
        "gas_used_today": "225873208779"
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:35.948Z",
        "request_id": "03dcc9bf-65e8-47ae-8491-195f94d48e4b"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/search` — Search addresses, tokens, blocks & txns

**Parameters:**
- `q` (query, required, string) — Search term, e.g. cUSD Example: `cUSD`

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "cUSD",
        "results": [
            {
                "name": "Celo Dollar",
                "type": "token",
                "symbol": "CUSD",
                "address": "0x765DE816845861e75A25fCA122bb6898B8B1282a"
            },
            {
                "name": "Moola cUSD AToken",
                "type": "token",
                "symbol": "mCUSD",
                "address": "0x64dEFa3544c695db8c535D289d843a189aa26b98"
            },
            {
                "name": "Celo USDT",
                "type": "token",
                "symbol": "cUSDT",
                "address": "0xf6D198Cd2A85bB2F3021cDBDAb6B878474079Be7"
            },
            {
                "name": "cUSD Samba Pool",
                "type": "token",
                "symbol": "cUSDSamba",
                "address": "0x5357a0Ed3f3a19887a65e7a351Aa037778F0A93a"
            },
            {
                "name": "Interest Bearing cUSD",
                "type": "token",
                "symbol": "dcUSD",
                "address": "0xb104422F2Fbc050055671265b95E08aD6057B0B3"
            },
            {
                "name": "test cUSD",
                "type": "token",
                "symbol": "tcUSD",
                "address": "0x87680B0a24aa4B079C6ba106E999Eb061FF9136B"
            },
            {
                "name": "Womens Day CUSD Pool",
                "type": "token",
                "symbol": "Womens Day CUSD",
          
…(truncated, see openapi.json for full schema)
```

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

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 319.64,
            "slow": 209.98,
            "average": 231.41
        },
        "total_blocks": 68974497,
        "coin_price_usd": 0.060658,
        "gas_used_today": "225873208779",
        "market_cap_usd": 36528919.205376,
        "total_addresses": "231003398",
        "total_transactions": "1346475724",
        "transactions_today": "1094954",
        "network_utilization_percent": 7.182612733333333
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:36.753Z",
        "request_id": "43bc04ca-794b-4d30-9f82-903d58bde1ff"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}
```

#### `GET /v1/token` — ERC-20 token detail by contract

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

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": "https://assets.coingecko.com/coins/images/13161/small/icon-celo-dollar-color-1000-circle-cropped.png?1696512945",
            "name": "Celo Dollar",
            "type": "ERC-20",
            "symbol": "CUSD",
            "holders": null,
            "decimals": 18,
            "total_supply": "16182079396866361916129421",
            "exchange_rate_usd": 1,
            "circulating_market_cap": "16162104.48893219"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:36.877Z",
        "request_id": "47cf29c6-a9a4-44a5-ab57-c99eb167f933"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

#### `GET /v1/transaction` — Transaction detail by hash

**Parameters:**
- `hash` (query, required, string) — A transaction hash (0x + 64 hex) Example: `0x82aef3ece1f05127d7c90239f85119cc44f597787ecc05b63a90f25926dfdd45`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x23d0FcAa39054209b8981982d2a4F9FC69c50a97",
            "from": "0x441C902b3043aB6f8cd68D22Ee4EeB583fb3B32b",
            "hash": "0x82aef3ece1f05127d7c90239f85119cc44f597787ecc05b63a90f25926dfdd45",
            "type": 0,
            "block": 25000000,
            "nonce": 2335,
            "method": "0x84f1b5da",
            "status": "ok",
            "fee_eth": 0.011464325161039936,
            "fee_wei": "11464325161039936",
            "gas_used": 133736,
            "gas_price": "85723553576",
            "timestamp": "2024-04-09T13:49:19.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 43980759
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:41.219Z",
        "request_id": "7677561f-00f0-4661-8890-65cb7eac1f4e"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Service description & endpoints

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

**Response:**
```json
{
    "data": {
        "service": "celo-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 Celo 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. Celo is a mobile-first EVM chain; native currency is CELO and it hosts stablecoins like cUSD and cEUR. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:41.297Z",
        "request_id": "c3bc524f-c03a-4cdb-aff5-a94d4831b864"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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