# Degen Chain API
> Live Degen Chain on-chain data via Blockscout. Degen Chain is a Farcaster-community L3 built on Arbitrum Orbit; gas and balances are in DEGEN. Network stats, gas prices, latest blocks, a block by height or hash, address detail with DEGEN 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/degen-api/..."
```

## Pricing
- **Free** (Free) — 2,100 calls/Mo, 1 req/s
- **Basic** ($10/Mo) — 88,000 calls/Mo, 10 req/s
- **Pro** ($31/Mo) — 580,000 calls/Mo, 20 req/s
- **Mega** ($99/Mo) — 2,800,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/degen-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 105.51,
        "slow": 105.51,
        "unit": "gwei",
        "average": 105.51,
        "gas_used_today": "127895229"
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:24.567Z",
        "request_id": "c1a27907-add9-437a-a44d-9ecc29490c87"
    },
    "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/degen-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 105.51,
            "slow": 105.51,
            "average": 105.51
        },
        "total_blocks": 26843285,
        "coin_price_usd": null,
        "gas_used_today": "127895229",
        "market_cap_usd": 0,
        "total_addresses": "20162384",
        "total_transactions": "146875423",
        "transactions_today": "4528",
        "network_utilization_percent": 6.203705993357289e-9
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:24.711Z",
        "request_id": "0ad26149-1179-43e7-b1b3-6ad1a16fb4bd"
    },
    "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: `26842864`
- `hash` (query, optional, string) — Block hash

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x95851685097053c6f9d4048581a312163b7ee89af1782d110380b07f65916da2",
            "size": 913,
            "miner": "0xA4b000000000000000000073657175656e636572",
            "height": 26842864,
            "reward": "0",
            "gas_used": 31225,
            "tx_count": 2,
            "gas_limit": 1125899906842624,
            "timestamp": "2026-06-08T02:00:12.000000Z",
            "burnt_fees": "3747000000000000",
            "difficulty": "1",
            "base_fee_per_gas": "120000000000"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:24.861Z",
        "request_id": "2d7884c6-1f8e-411e-a63f-175c81dc1ca4"
    },
    "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/degen-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x8c4073d8c2c4eb3dca3140891f8e11e0a20450a08cfe291b5b038e16e798c688",
                "size": 1010,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843327,
                "reward": "0",
                "gas_used": 38013,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:36.000000Z",
                "burnt_fees": "4561560000000000",
                "difficulty": "1",
                "base_fee_per_gas": "120000000000"
            },
            {
                "hash": "0x3de0426fdea90f9cf23365e2ad4019724318fa283bdd9a803af7638392097994",
                "size": 1010,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843326,
                "reward": "0",
                "gas_used": 38037,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "4564440000000000",
                "difficulty": "1",
                "base_fee_per_gas": "120000000000"
            },
            {
                "hash": "0x50caef711881c901d8075b2b8cae6a51de6849c6619b0f9a76fc26aa24e45525",
                "size": 1319,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843325
…(truncated, see openapi.json for full schema)
```

### Accounts

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

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

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0xAa58Cc585b8FC7D6C3c67e9847205AD6B8603929",
            "name": "First Degen USD",
            "token": {
                "name": "First Degen USD",
                "type": "ERC-20",
                "symbol": "FDUSD"
            },
            "creator": "0x3bc6B601196752497a68B2625DB4f2205C3b150b",
            "balance_wei": "0",
            "is_contract": true,
            "is_verified": true,
            "balance_degen": 0
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:25.279Z",
        "request_id": "48aa66ed-04e7-4559-ac82-68c3cc448bad"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x00000000000000000000000000000000000A4B05",
            "from": "0x00000000000000000000000000000000000A4B05",
            "hash": "0xcc00fbb3a0c3a9470dd66e23180047c759d4cb4f358be41e782cca14ccfb6a68",
            "type": 106,
            "block": 26842864,
            "nonce": 0,
            "method": "startBlock",
            "status": "ok",
            "fee_wei": "0",
            "gas_used": 0,
            "fee_degen": 0,
            "gas_price": "120000000000",
            "timestamp": "2026-06-08T02:00:12.000000Z",
            "value_wei": "0",
            "value_degen": 0,
            "confirmations": 464
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:25.495Z",
        "request_id": "0852fe69-293a-4769-9648-15ce13ca9143"
    },
    "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: `0xAa58Cc585b8FC7D6C3c67e9847205AD6B8603929`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "First Degen USD",
            "type": "ERC-20",
            "symbol": "FDUSD",
            "holders": null,
            "decimals": 18,
            "total_supply": "1999999310095225460206130",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:25.621Z",
        "request_id": "8e92038d-b0f4-4864-a73f-6d89197c55c1"
    },
    "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/degen-api/v1/search?q=USD"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "USD",
        "results": [
            {
                "name": "First Degen USD",
                "type": "token",
                "symbol": "FDUSD",
                "address": "0xAa58Cc585b8FC7D6C3c67e9847205AD6B8603929"
            },
            {
                "name": "Wrapped Degen USDe",
                "type": "token",
                "symbol": "WUSD",
                "address": "0xaD015e5beCf7f5E56d5aa5DE6D5a38DBDb408c74"
            },
            {
                "name": "Ethena USDe",
                "type": "token",
                "symbol": "USDE",
                "address": "0x83d735cB8Cc06f4EA2304125aB62D6f6600c54a8"
            },
            {
                "name": "Wrapped Degen USD Coin",
                "type": "token",
                "symbol": "WDUSDC",
                "address": "0x8e1EA9164e6F2EAB300fC90EdeBeE39D3c4Bc7EF"
            },
            {
                "name": "Add liquidity on Staked USDe",
                "type": "token",
                "symbol": "LPSUSDE",
                "address": "0xeDcC2095Ef6038511A634B13fC21784BeE765307"
            },
            {
                "name": "USD Degen Coin",
                "type": "token",
                "symbol": "USDDC",
                "address": "0x1aEb553282B1Eb10fACfd3e5932a84377E026081"
            },
            {
                "name": "CENEZ USD",
                "type": "token",
                "symbol": "CUSD",
         
…(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/degen-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "service": "degen-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 Degen Chain 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. Degen Chain is a Farcaster-community L3 (Arbitrum Orbit); gas and balances are in DEGEN. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:51:25.888Z",
        "request_id": "ff8e6dae-6c42-4aa1-8d3f-a63a68bd3453"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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