# 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"
```

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

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

### 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"
```

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

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

### 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"
```

#### `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"
```

### 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"
```

### 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"
```

### Meta

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

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


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