# Bahamut API
> Live EVM on-chain data for Bahamut (chain id 5165) — the Proof-of-Stake-and-Activity Layer-1 by Fastex, whose native token is FTN — served directly from public EVM JSON-RPC nodes with multi-node failover. The status endpoint returns the chain and network id, the latest block height and the node client version. The block endpoint returns a block by number (or the latest) with its hash, parent hash, timestamp, transaction count, gas used and gas limit, miner and size. The gas endpoint returns the current gas price in both wei and gwei. The balance endpoint returns the FTN balance and outgoing transaction count for any address, converted from base wei (18 decimals) into whole FTN with exact big-integer scaling. Every figure is read live from the chain over JSON-RPC — nothing bundled or modelled — behind a short server-side cache with keep-warm so the feed stays fast and fresh. Ideal for explorers, wallet and dashboard tooling, gas trackers, address monitors and analytics apps across the Bahamut and Fastex ecosystem. Live keyless upstream. 5 endpoints.

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

## Pricing
- **Free** (Free) — 310 calls/Mo, 2 req/s
- **Starter** ($12/Mo) — 16,100 calls/Mo, 8 req/s
- **Pro** ($35/Mo) — 79,000 calls/Mo, 16 req/s
- **Mega** ($85/Mo) — 322,000 calls/Mo, 40 req/s

## Endpoints

### Bahamut

#### `GET /v1/balance` — Address balance & tx count

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

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

**Response:**
```json
{
    "data": {
        "chain": "Bahamut",
        "symbol": "FTN",
        "address": "0x000000000000000000000000000000000000dEaD",
        "balance": 0,
        "tx_count": 0,
        "balance_wei": "0"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:10.746Z",
        "request_id": "0818d5f7-6749-46f3-a5ff-0c62937896b6"
    },
    "status": "ok",
    "message": "Bahamut balance retrieved",
    "success": true
}
```

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

**Parameters:**
- `number` (query, optional, string) — Block number; omit for latest Example: `5000000`

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

**Response:**
```json
{
    "data": {
        "hash": "0x03054e0f5e60278a50faf0b4db675d024ade2d49e1ddc35fba61047401313aa9",
        "chain": "Bahamut",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 5000000,
        "gas_used": 0,
        "tx_count": 0,
        "gas_limit": 30000000,
        "timestamp": 1742710081,
        "size_bytes": 611,
        "parent_hash": "0x1b26e20755854fb7d99346a72e03e3af86eea486f44e3c8f65456a30c6f14a08",
        "timestamp_iso": "2025-03-23T06:08:01.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:10.868Z",
        "request_id": "62dc8cd2-5c87-4bd3-8850-0e672ccf5239"
    },
    "status": "ok",
    "message": "Bahamut block retrieved",
    "success": true
}
```

#### `GET /v1/gas` — Current gas price

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

**Response:**
```json
{
    "data": {
        "chain": "Bahamut",
        "source": "eth_gasPrice",
        "symbol": "FTN",
        "gas_price_wei": 78749997,
        "gas_price_gwei": 0.078749997
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:10.966Z",
        "request_id": "8aba75ed-ce12-4be8-a3fa-8be4ba09d050"
    },
    "status": "ok",
    "message": "Bahamut gas retrieved",
    "success": true
}
```

#### `GET /v1/status` — Chain status

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

**Response:**
```json
{
    "data": {
        "chain": "Bahamut",
        "source": "Bahamut EVM RPC",
        "symbol": "FTN",
        "chain_id": 5165,
        "network_id": 5165,
        "latest_block": 8237121,
        "client_version": "Geth/v2.0.0-stable-c675cfed/linux-amd64/go1.22.0"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:11.110Z",
        "request_id": "bfe73bd2-9cfd-4dc7-a0dd-3c83e3365c71"
    },
    "status": "ok",
    "message": "Bahamut status retrieved",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "api": "Bahamut API",
        "chain": "Bahamut",
        "source": "Bahamut EVM JSON-RPC nodes",
        "symbol": "FTN",
        "chain_id": 5165,
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Live EVM on-chain data for Bahamut — the Proof-of-Stake-and-Activity Layer-1 by Fastex, native token FTN.",
        "documentation": "https://bahamut-api.oanor.dev"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:11.213Z",
        "request_id": "4c597403-8f79-4aa4-8f0e-c4f3872c761f"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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