# Bittensor EVM Chain API
> Live on-chain data for the Bittensor EVM mainnet (the EVM environment of the Bittensor / TAO decentralized-AI network, native TAO) via Blockscout — no key. Read network stats (block height, total transactions, gas), a gas oracle in gwei, the most recent blocks and full block detail by height or hash, any address balance and contract info, full transaction detail, ERC-20 token detail by contract, and a universal search across addresses, tokens, blocks and transactions. Real chain data with the rotating proxy as automatic fallback — 9 endpoints. Ideal for wallets, explorers, AI-subnet and DeFi tooling, portfolio trackers and on-chain monitoring on Bittensor EVM.

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

## Pricing
- **Free** (Free) — 5,200 calls/Mo, 2 req/s
- **Basic** ($10/Mo) — 123,000 calls/Mo, 8 req/s
- **Pro** ($30/Mo) — 665,000 calls/Mo, 20 req/s
- **Mega** ($81/Mo) — 3,450,000 calls/Mo, 50 req/s

## Endpoints

### Network

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

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

**Response:**
```json
{
    "data": {
        "fast": 10.29,
        "slow": 8.76,
        "unit": "gwei",
        "average": 8.85,
        "gas_used_today": "1381187888"
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:21.867Z",
        "request_id": "43d1020d-bb1a-4c72-93a3-d6d0d34ffd43"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

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

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 10.29,
            "slow": 8.76,
            "average": 8.85
        },
        "total_blocks": 4018057,
        "coin_price_usd": 218.19,
        "gas_used_today": "1381187888",
        "market_cap_usd": 2094076561.29,
        "total_addresses": "11174",
        "total_transactions": "2980886",
        "transactions_today": "23483",
        "network_utilization_percent": 0.3880510133333333
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:22.044Z",
        "request_id": "c6098197-ab5e-4558-a1df-451343c464cc"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}
```

### Blocks

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

**Parameters:**
- `height` (query, optional, string) — Block height Example: `8362241`
- `hash` (query, optional, string) — Block hash (0x + 64 hex)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0xd214af49f259eddbbb8b41f3978c42c9e845594c78035c90d4d95cbee66761d7",
            "size": 2704,
            "miner": "0x1961dF4706Dd7ad10693CfcC9a8F9d07047c3357",
            "height": 8362241,
            "gas_used": 262824,
            "tx_count": 6,
            "gas_limit": 75000000,
            "timestamp": "2026-06-08T13:28:48.000000Z",
            "burnt_fees": "2628240000000000",
            "difficulty": "0",
            "base_fee_per_gas": "10000000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:22.255Z",
        "request_id": "05df5e95-8a84-4cfc-afd9-c9583bcd4153"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

#### `GET /v1/blocks` — Most recent blocks

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xbe779ae0a977f32fd2fec924c1a8cb3192a9630aa2fd43d5c0b0de9bfbe69c6d",
                "size": 2417,
                "miner": "0x96E59a08b931d5C751fFB130ff2c2b3d9Eb8afB0",
                "height": 8363723,
                "gas_used": 214651,
                "tx_count": 3,
                "gas_limit": 75000000,
                "timestamp": "2026-06-08T18:25:12.000000Z",
                "burnt_fees": "2146510000000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000000"
            },
            {
                "hash": "0x41f9a7326cec1867d6a29e6880c67dd4d0f6cedd97370415b1d4fe0bc6b427ca",
                "size": 1741,
                "miner": "0xD665619ceF248e2aA2491654535fD60B69daD142",
                "height": 8363722,
                "gas_used": 132721,
                "tx_count": 3,
                "gas_limit": 75000000,
                "timestamp": "2026-06-08T18:25:00.000000Z",
                "burnt_fees": "1327210000000000",
                "difficulty": "0",
                "base_fee_per_gas": "10000000000"
            },
            {
                "hash": "0x9bca89d109f6414fc55fb752e2a462b023d019de1efee8b2a649340085418033",
                "size": 1591,
                "miner": "0x1961dF4706Dd7ad10693CfcC9a8F9d07047c3357",
                "height": 8363721,
                "gas_used": 95692,
                "tx_count": 2,
             
…(truncated, see openapi.json for full schema)
```

### Accounts

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

**Parameters:**
- `address` (query, required, string) — Address (0x + 40 hex) Example: `0x54D435009Ee265d5967cc1Ed8b37cf8426De1149`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x54D435009Ee265d5967cc1Ed8b37cf8426De1149",
            "name": null,
            "token": null,
            "creator": null,
            "balance_tao": 4.290781124,
            "balance_wei": "4290781124000000000",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:23.172Z",
        "request_id": "10718d51-e898-4354-95f9-8bdb9df1e2b1"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

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

**Parameters:**
- `hash` (query, required, string) — Transaction hash (0x + 64 hex) Example: `0xcac2d5925b18fbb0e7f96b89aefb7a2e01281c79d68d494fe4a67f03a02be97f`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x94C262216A8111d208433Ad48Fcdc05831D60AFB",
            "from": "0x54D435009Ee265d5967cc1Ed8b37cf8426De1149",
            "hash": "0xcac2d5925b18fbb0e7f96b89aefb7a2e01281c79d68d494fe4a67f03a02be97f",
            "type": 2,
            "block": 8362246,
            "nonce": 304883,
            "method": "0x5001f15e",
            "status": "ok",
            "fee_tao": 0.00058484,
            "fee_wei": "584840000000000",
            "gas_used": 58484,
            "gas_price": "10000000000",
            "timestamp": "2026-06-08T13:29:48.000000Z",
            "value_tao": 0,
            "value_wei": "0",
            "confirmations": 1478
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:23.466Z",
        "request_id": "fc272a89-21bb-416e-8f79-bf83b81a0303"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Tokens

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

**Parameters:**
- `address` (query, required, string) — Token contract (0x + 40 hex) Example: `0xB833E8137FEDf80de7E908dc6fea43a029142F20`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "USD Coin",
            "type": "ERC-20",
            "symbol": "USDC",
            "address": "0xB833E8137FEDf80de7E908dc6fea43a029142F20",
            "holders": 469,
            "decimals": 6,
            "total_supply": "189334131564",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:23.660Z",
        "request_id": "fc41c37a-4794-4207-b9ed-32de929fe949"
    },
    "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: `bittensor`

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

**Response:**
```json
{
    "data": {
        "count": 4,
        "query": "bittensor",
        "results": [
            {
                "name": "bittensor dog",
                "type": "token",
                "symbol": "BITDOG",
                "address": "0xCd1289A39716a4dB2901D2d65A8fF2FA43D5E387"
            },
            {
                "name": "Wrapped Bittensor",
                "type": "token",
                "symbol": "wTAO",
                "address": "0x134f59E8B8637FD70ae12f263492B1dc73A25D1e"
            },
            {
                "name": "Bittensor Subnet 60 τ",
                "type": "token",
                "symbol": "BITSEC",
                "address": "0x6bfE9E0F8e64d16284c0d140Ee946aA6518357aD"
            },
            {
                "name": "BittensorEvmBridge",
                "type": "contract",
                "address": "0x51F84cD73A38F3B0B9278B86a9D272Bf5865f603"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:23.780Z",
        "request_id": "236d9bba-c4bf-4798-9ef0-f298fec993cf"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "bittensor-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 & contract info (address=).",
            "GET /v1/transaction": "Transaction detail (hash=)."
        },
        "description": "Live Bittensor EVM (TAO) mainnet on-chain data via Blockscout: network stats, a gas oracle (gwei), recent blocks and block detail, address balances, transaction detail, ERC-20 token detail and a universal search across addresses, tokens, blocks and transactions. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:23.865Z",
        "request_id": "850a6621-6bc8-4697-ac9b-40367eaa722a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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