# Botanix API
> Real-time on-chain data for Botanix (chain-id 3637) — the decentralized Bitcoin Layer-2 (Spiderchain) that is EVM-equivalent and uses BTC as its native gas token. Query live network status (latest block height, network id, client version), fetch any block by height or the latest one (timestamp, transaction count, gas used / limit, base fee, miner), read the current gas price in wei and gwei, and look up the native BTC balance and transaction count of any address. A keyless, no-account JSON wrapper over the canonical Botanix JSON-RPC node — decoded from hex into plain decimals and human-readable BTC so you do not have to. Ideal for explorers, wallets, dashboards, gas estimators and analytics on the Botanix Bitcoin L2.

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

## Pricing
- **Free** (Free) — 5,100 calls/Mo, 3 req/s
- **Basic** ($14/Mo) — 61,000 calls/Mo, 10 req/s
- **Pro** ($37/Mo) — 226,000 calls/Mo, 25 req/s
- **Mega** ($78/Mo) — 918,000 calls/Mo, 60 req/s

## Endpoints

### Network

#### `GET /v1/status` — Network status (latest block, chain id, client version)

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

**Response:**
```json
{
    "data": {
        "chain": "Botanix",
        "chain_id": 3637,
        "network_id": 3637,
        "rpc_healthy": true,
        "latest_block": 5978137,
        "native_symbol": "BTC",
        "client_version": "reth/v1.3.2-VERGEN_I/x86_64-unknown-linux-gnu"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:32.524Z",
        "request_id": "b6936a44-9edc-4555-89ec-0e9e2fb89514"
    },
    "status": "ok",
    "message": "Chain status retrieved successfully",
    "success": true
}
```

### Blocks

#### `GET /v1/block` — Block by height (or latest)

**Parameters:**
- `number` (query, optional, string) — Block height (decimal or 0x-hex), or "latest" Example: `3000000`

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

**Response:**
```json
{
    "data": {
        "hash": "0x94647a146762f73da2997bf6e1fc27d16e4ff2328e278fd9974f3197b9020501",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 3000000,
        "gas_used": 309628,
        "gas_limit": 30000000,
        "timestamp": 1764267939,
        "size_bytes": 1859,
        "parent_hash": "0xe2d89b0d30967147dfc6628e38e946cf5d807fd8505fdc1b988dc59c4961109d",
        "timestamp_iso": "2025-11-27T18:25:39.000Z",
        "transaction_count": 7,
        "base_fee_per_gas_wei": "500000"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:32.749Z",
        "request_id": "3108c6c3-a886-4b70-8441-13c4a2608464"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

### Gas

#### `GET /v1/gas` — Current gas price (wei + gwei)

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

**Response:**
```json
{
    "data": {
        "at_block": 5978137,
        "gas_price_wei": "600000",
        "native_symbol": "BTC",
        "gas_price_gwei": 0.0006
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:32.965Z",
        "request_id": "74b18d78-6859-4677-b353-be80756a6af6"
    },
    "status": "ok",
    "message": "Gas price retrieved successfully",
    "success": true
}
```

### Accounts

#### `GET /v1/balance` — Native BTC balance and transaction count of an address

**Parameters:**
- `address` (query, required, string) — 0x-prefixed 40-hex EVM address Example: `0x000000000000000000000000000000000000dEaD`

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

**Response:**
```json
{
    "data": {
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": "0",
        "balance_wei": "0",
        "native_symbol": "BTC",
        "transaction_count": 0
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:33.170Z",
        "request_id": "c53412d1-3033-411b-a981-b218ab45ec2f"
    },
    "status": "ok",
    "message": "Balance retrieved successfully",
    "success": true
}
```

### Meta

#### `GET /v1/meta` — Service metadata

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

**Response:**
```json
{
    "data": {
        "type": "Bitcoin Layer-2 (Spiderchain, EVM-equivalent)",
        "chain": "Botanix",
        "network": "mainnet",
        "chain_id": 3637,
        "decimals": 18,
        "ecosystem": "Botanix — decentralized Bitcoin L2 secured by a Spiderchain of multisigs, native gas token BTC",
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Botanix is a decentralized Bitcoin Layer-2 (Spiderchain) that is EVM-equivalent and uses BTC as its native gas token.",
        "documentation": "https://botanix-api.oanor.dev",
        "native_symbol": "BTC"
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:33.248Z",
        "request_id": "dff62bab-e79b-48b9-aeaa-cc4be5fbfaba"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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