# Vana API
> Live Vana on-chain data via Blockscout. Vana is a data-sovereignty Layer 1 for user-owned data and AI; gas and balances are in VANA. Network stats, gas prices, latest blocks, a block by height or hash, address detail with VANA balance, a transaction by hash, ERC-20 token metadata and a universal search across addresses, tokens, blocks and transactions. Real data, no key.

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

## Pricing
- **Free** (Free) — 1,350 calls/Mo, 1 req/s
- **Basic** ($15/Mo) — 74,500 calls/Mo, 10 req/s
- **Pro** ($48/Mo) — 485,000 calls/Mo, 20 req/s
- **Mega** ($152/Mo) — 2,480,000 calls/Mo, 50 req/s

## Endpoints

### Network

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

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

**Response:**
```json
{
    "data": {
        "fast": 4.71,
        "slow": 4.71,
        "unit": "gwei",
        "average": 4.71,
        "gas_used_today": "136739851"
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:49.453Z",
        "request_id": "36097419-0f7c-4476-bb40-0117e5a85264"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

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

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 4.71,
            "slow": 4.71,
            "average": 4.71
        },
        "total_blocks": 8720565,
        "coin_price_usd": null,
        "gas_used_today": "136739851",
        "market_cap_usd": 0,
        "total_addresses": "1598614",
        "total_transactions": "71869251",
        "transactions_today": "2852",
        "network_utilization_percent": 0.0113967
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:49.689Z",
        "request_id": "135ca7f1-6b13-40d0-a8a0-e15caf5508a6"
    },
    "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: `8717007`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x2436dc1c4d88897fad623df03e6f303a4173f73ec7a564f1cba4dec7284dce3d",
            "size": 3895,
            "miner": "0x79D7E19e88f5089CC31e925160a7252F287a51a7",
            "height": 8717007,
            "gas_used": 341937,
            "tx_count": 9,
            "gas_limit": 60000000,
            "timestamp": "2026-06-08T02:56:31.000000Z",
            "burnt_fees": "2393559",
            "difficulty": "0",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:49.915Z",
        "request_id": "6dba3b79-5fb1-44d3-a7cc-1e2ae7363b83"
    },
    "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/vana-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xe382836939ba36b838f62b2357a67f463afee3cbddba1c53bef1aafb18980c6f",
                "size": 672,
                "miner": "0x79D7E19e88f5089CC31e925160a7252F287a51a7",
                "height": 8721145,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:50:43.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0xdd7abe06135548776c9eb28747cbb9b397e57a8d843fc9e0e2fb54b616aa52bd",
                "size": 640,
                "miner": "0x79D7E19e88f5089CC31e925160a7252F287a51a7",
                "height": 8721144,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T09:50:37.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0x85fd1ca677189c5f323f424cdcd517bb6019eed8014d69664faa79d19c8d448f",
                "size": 640,
                "miner": "0x79D7E19e88f5089CC31e925160a7252F287a51a7",
                "height": 8721143,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Address detail with VANA balance

**Parameters:**
- `address` (query, required, string) — Address hash Example: `0xF1815bd50389c46847f0Bda824eC8da914045D14`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xF1815bd50389c46847f0Bda824eC8da914045D14",
            "name": "Bridged USDC (Stargate)",
            "token": {
                "name": "Bridged USDC (Stargate)",
                "type": "ERC-20",
                "symbol": "USDC.e"
            },
            "creator": "0x565786AbE5BA0f9D307AdfA681379F0788bEdEf7",
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true,
            "balance_vana": 0
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:50.575Z",
        "request_id": "bc130027-21d2-4ac2-afc8-5aaa61f472e6"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

#### `GET /v1/transaction` — A transaction by hash

**Parameters:**
- `hash` (query, required, string) — Transaction hash Example: `0x1fe408d78867c1c16ff25809205c8a4659a1b322fcd9cdede1072d105b5dfaf7`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x3c2269811836af69497E5F486A85D7316753cf62",
            "from": "0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749",
            "hash": "0x1fe408d78867c1c16ff25809205c8a4659a1b322fcd9cdede1072d105b5dfaf7",
            "type": 0,
            "block": 8717007,
            "nonce": 1144721,
            "method": "0x3161b7f6",
            "status": "ok",
            "fee_wei": "643522864401282",
            "fee_vana": 0.000643522864401282,
            "gas_used": 38013,
            "gas_price": "16929020714",
            "timestamp": "2026-06-08T02:56:31.000000Z",
            "value_wei": "0",
            "value_vana": 0,
            "confirmations": 4139
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:53.655Z",
        "request_id": "f676954b-c94b-404a-9b2e-1a37bad6b94f"
    },
    "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: `0xF1815bd50389c46847f0Bda824eC8da914045D14`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Bridged USDC (Stargate)",
            "type": "ERC-20",
            "symbol": "USDC.e",
            "holders": null,
            "decimals": 6,
            "total_supply": "74839315539",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:54.254Z",
        "request_id": "a0c96fe4-6e30-4c22-b5b9-0faf9fff6c64"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal on-chain search

**Parameters:**
- `q` (query, required, string) — Address, token, block or tx Example: `USD`

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

**Response:**
```json
{
    "data": {
        "count": 9,
        "query": "USD",
        "results": [
            {
                "name": "Bridged USDC (Stargate)",
                "type": "token",
                "symbol": "USDC.e",
                "address": "0xF1815bd50389c46847f0Bda824eC8da914045D14"
            },
            {
                "name": "USDT",
                "type": "token",
                "symbol": "USDT",
                "address": "0x88853D410299BCBfE5fCC9Eef93c03115E908279"
            },
            {
                "name": "Tether USD",
                "type": "token",
                "symbol": "USDT",
                "address": "0x376E33487e5570b1AcE1abBa05A436f00283A524"
            },
            {
                "name": "Us Dollar",
                "type": "token",
                "symbol": "USD",
                "address": "0x0c431CBdC21570184034839cBEB047C47fA4D120"
            },
            {
                "name": "Bridged Tether Usd",
                "type": "token",
                "symbol": "USDT.e",
                "address": "0x20c57ff879a2B45da13671FE0b8C695987610167"
            },
            {
                "name": "Test USDC",
                "type": "token",
                "symbol": "tUSDC",
                "address": "0x1Fe0eBD7B53fC434Ea0a69074406503F9Ab0e2FC"
            },
            {
                "name": "Test USDT",
                "type": "token",
                "symbol": "tUSDT",
                "address": "0xC7623faa9e41DaAf8
…(truncated, see openapi.json for full schema)
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "vana-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 Vana 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. Vana is a data-sovereignty Layer 1 for user-owned data and AI; gas and balances are in VANA. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:54.609Z",
        "request_id": "eb0d8f90-b6ab-496e-910b-f84c31bb1481"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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