# Taiko Chain API
> Live on-chain data for Taiko — a based-rollup Ethereum Layer 2 — 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/taiko-api/..."
```

## Pricing
- **Free** (Free) — 5,200 calls/Mo, 2 req/s
- **Basic** ($32/Mo) — 148,000 calls/Mo, 8 req/s
- **Pro** ($97/Mo) — 830,000 calls/Mo, 20 req/s
- **Mega** ($325/Mo) — 4,750,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/taiko-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 0.02,
        "slow": 0.01,
        "unit": "gwei",
        "average": 0.02,
        "gas_used_today": "4372150574"
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:03.051Z",
        "request_id": "9dd38e6d-659f-4a81-a44f-5dcba6271ee9"
    },
    "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/taiko-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.02,
            "slow": 0.01,
            "average": 0.02
        },
        "total_blocks": 7652060,
        "coin_price_usd": null,
        "gas_used_today": "4372150574",
        "market_cap_usd": 0,
        "total_addresses": "3081430",
        "total_transactions": "901789440",
        "transactions_today": "41706",
        "network_utilization_percent": 0.28747534782608697
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:03.369Z",
        "request_id": "c167bc85-b4dc-4e3a-90d0-aca236b22b5c"
    },
    "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: `7650154`
- `hash` (query, optional, string) — Block hash (alternative to height)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x0d7ffca8852b4cb8e3b41a619b878a83646782510190ed9fe2ef80ace829636e",
            "size": 3836,
            "miner": "0x5F62d006C10C009ff50C878Cd6157aC861C99990",
            "height": 7650154,
            "gas_used": 491862,
            "tx_count": 11,
            "gas_limit": 46000000,
            "timestamp": "2026-06-08T06:52:59.000000Z",
            "burnt_fees": "4918620000000",
            "difficulty": "0",
            "base_fee_per_gas": "10000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:03.654Z",
        "request_id": "bc16b078-e518-436b-acd6-a19f67a7f3e0"
    },
    "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/taiko-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xd17e096d9155665989b62feba608fc3dd82d444f180dd9af7920cfa73338a1f8",
                "size": 775,
                "miner": "0x5F62d006C10C009ff50C878Cd6157aC861C99990",
                "height": 7654357,
                "gas_used": 112068,
                "tx_count": 1,
                "gas_limit": 46000000,
                "timestamp": "2026-06-08T09:48:59.000000Z",
                "burnt_fees": "1120680000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0x34f7fa2323d7a8554f0784f75afcb919c3e4c7cde73bf43520c68bbf27d784cc",
                "size": 775,
                "miner": "0x5F62d006C10C009ff50C878Cd6157aC861C99990",
                "height": 7654356,
                "gas_used": 112068,
                "tx_count": 1,
                "gas_limit": 46000000,
                "timestamp": "2026-06-08T09:48:53.000000Z",
                "burnt_fees": "1120680000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000"
            },
            {
                "hash": "0x09b369fa98eb5f589d92046a9ea8de1989ba179dd345ea9897e727929bae9525",
                "size": 775,
                "miner": "0x5F62d006C10C009ff50C878Cd6157aC861C99990",
                "height": 7654355,
                "gas_used": 112068,
                "tx_count": 1,
                "gas_limit"
…(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: `0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
            "name": null,
            "token": null,
            "creator": null,
            "balance_eth": 0.7893225482633892,
            "balance_wei": "789322548263389187",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:05.049Z",
        "request_id": "826da90f-b4f9-4f10-89cb-bd38d18f20d5"
    },
    "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: `0xca150e6d2b27d0987d4bdd24ae09e1c3b29742415f8fbaa8dc89b7f1ccd96eb8`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x3c2269811836af69497E5F486A85D7316753cf62",
            "from": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
            "hash": "0xca150e6d2b27d0987d4bdd24ae09e1c3b29742415f8fbaa8dc89b7f1ccd96eb8",
            "type": 0,
            "block": 7650154,
            "nonce": 1366733,
            "method": "0x3161b7f6",
            "status": "ok",
            "fee_eth": 2.425872057777e-6,
            "fee_wei": "2425872057777",
            "gas_used": 37977,
            "gas_price": "63877401",
            "timestamp": "2026-06-08T06:52:59.000000Z",
            "value_eth": 0,
            "value_wei": "0",
            "confirmations": 4204
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:05.530Z",
        "request_id": "7f77fd66-d5c7-447e-8df4-ad9132095c1b"
    },
    "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: `0xA9d23408b9bA935c230493c40C73824Df71A0975`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Taiko Token",
            "type": "ERC-20",
            "symbol": "TAIKO",
            "address": "0xA9d23408b9bA935c230493c40C73824Df71A0975",
            "holders": 255098,
            "decimals": 18,
            "total_supply": "109823420734053899211286547",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:05.772Z",
        "request_id": "6171ac41-ae6f-4b8b-aa78-a3f1129c73b0"
    },
    "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: `TAIKO`

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "TAIKO",
        "results": [
            {
                "name": "Taiko Token",
                "type": "token",
                "symbol": "TAIKO",
                "address": "0xA9d23408b9bA935c230493c40C73824Df71A0975"
            },
            {
                "name": "Taiko Token",
                "type": "token",
                "symbol": "Claim on: taiko-reward.com",
                "address": "0x46c7dB8BD76Feb2f1525dbC696D14D835Fb32ecC"
            },
            {
                "name": "Taiko Beta Pass",
                "type": "token",
                "symbol": "TKBP",
                "address": "0xCb2Eb4ba62346751F36bA652010b553759141AEE"
            },
            {
                "name": "Taiko Token",
                "type": "token",
                "symbol": "Claim: reward-taiko.xyz",
                "address": "0xf9cf03F5E2C23e747b140E68E9EFa4b5B7C23bfC"
            },
            {
                "name": "Taiko Token",
                "type": "token",
                "symbol": "Claim: reward-taiko.xyz",
                "address": "0xC20Be17fcfcda9bBA6009Ea05A88378b3AA1FBD1"
            },
            {
                "name": "Taiko Token",
                "type": "token",
                "symbol": "Claim: reward-taiko.xyz",
                "address": "0x9750EeC077E9308CE337026f146Bba72750C4a67"
            },
            {
                "name": "Hana Taiko WETH",
                "type": "token",

…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "taiko-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 Taiko 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. Taiko is a based-rollup Ethereum Layer 2; gas, balances and fees are in ETH. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:06.234Z",
        "request_id": "c42b3e65-b77b-4b3d-98dc-ecf57d960ba9"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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