# Syscoin Chain API
> Live on-chain data for Syscoin NEVM — an EVM Layer 1 merge-mined with Bitcoin — via its public Blockscout explorer (no wallet, no key). The stats endpoint returns chain-wide totals (blocks, transactions, addresses, average block time, gas used); gas gives the current gas-price oracle (slow/average/fast). Blocks lists the latest blocks, and a single block resolves by height or by hash with its transaction count, gas, miner and timestamp. The address endpoint returns any account's SYS balance, nonce, contract flag and token holdings; transaction resolves a tx by hash with its from/to, value in SYS, fee, status and block. The token endpoint returns an ERC-20 token's metadata (name, symbol, decimals, total supply, holders) by contract address, and search runs a universal lookup across addresses, tokens, blocks and transactions. Gas, balances, values and fees are denominated in SYS, the native coin. Real on-chain data straight from the explorer, refreshed every call — no key. 9 endpoints. For multi-chain coverage combine with the other oanor chain APIs (Ethereum, Base, Arbitrum and more).

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

## Pricing
- **Free** (Free) — 2,200 calls/Mo, 2 req/s
- **Basic** ($16/Mo) — 91,000 calls/Mo, 8 req/s
- **Pro** ($50/Mo) — 590,000 calls/Mo, 20 req/s
- **Mega** ($165/Mo) — 3,150,000 calls/Mo, 50 req/s

## Endpoints

### Chain

#### `GET /v1/gas` — Gas-price oracle

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

**Response:**
```json
{
    "data": {
        "fast": 0.06,
        "slow": 0.06,
        "unit": "gwei",
        "average": 0.06,
        "gas_used_today": "9405500"
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:49.833Z",
        "request_id": "7522d9e9-0db7-46c6-bee8-d084ccd2e882"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Chain stats

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

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 0.06,
            "slow": 0.06,
            "average": 0.06
        },
        "total_blocks": 935250,
        "coin_price_usd": null,
        "gas_used_today": "9405500",
        "market_cap_usd": 0,
        "total_addresses": "217602",
        "total_transactions": "5668740",
        "transactions_today": "107",
        "network_utilization_percent": 0.05323575
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:49.941Z",
        "request_id": "0c034124-bb5d-4d08-bf9d-296e26dbe125"
    },
    "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: `935029`
- `hash` (query, optional, string) — Block hash (alternative to height)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x346be5fb80ee2825e7d39720c345a30481bef8932e438ffdbd150f23a96923f5",
            "size": 784,
            "miner": "0x0E4e22cF27d921f8e187C3a3F71350186EBd0BFd",
            "height": 935029,
            "reward": "10550000001150821984",
            "gas_used": 86424,
            "tx_count": 1,
            "gas_limit": 16000000,
            "timestamp": "2026-06-07T22:11:07.000000Z",
            "burnt_fees": "604968",
            "difficulty": "0",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:50.070Z",
        "request_id": "9c124459-42cf-4bf2-9416-5b41a8170f6b"
    },
    "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/syscoin-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x2147c92e3054bf408071050e6424aa802c0569c2f4a20ed15d0790e19f7e61a4",
                "size": 537,
                "miner": "0x995c0Eaa5f06bd58a4361D7AC0a103497F102d3e",
                "height": 935266,
                "reward": "10550000000000000000",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:47:36.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0x2e936dcf8b24f66088b2abb034614f7b9ccd169009acad652c46be904f58c21f",
                "size": 537,
                "miner": "0x2d10d05e64b491748aFC995307AEB294F7c20284",
                "height": 935265,
                "reward": "10550000000000000000",
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:43:49.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0x92acf8e6582479107b58e0d906136b30c8c46972dbd85a1b724f70ee49fcbdd0",
                "size": 537,
                "miner": "0x4687aFe2944f750ab4D5133deD6E72a830F4D9E5",
                "height": 935264,
                "reward": "105500000000000000
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Account balance & holdings

**Parameters:**
- `address` (query, required, string) — Account address (0x + 40 hex) Example: `0x21821Dc24dd29D2D23fE7223dB2BB8D2a72cC95F`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x21821Dc24dd29D2D23fE7223dB2BB8D2a72cC95F",
            "name": null,
            "token": null,
            "creator": null,
            "balance_sys": 977.1465231639091,
            "balance_wei": "977146523163909130971",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:50.356Z",
        "request_id": "2a7d2a1e-5942-4169-bb3e-7b1e2a721e1c"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transactions

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

**Parameters:**
- `hash` (query, required, string) — Transaction hash (0x + 64 hex) Example: `0x62ce5f67caa9c84109dae205aaa3bd7e8330f5796a185f2fd3528e1c9315ad1b`

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0xb8FFE6015e1c00CFA620F884f25f21f001744C0e",
            "from": "0x21821Dc24dd29D2D23fE7223dB2BB8D2a72cC95F",
            "hash": "0x62ce5f67caa9c84109dae205aaa3bd7e8330f5796a185f2fd3528e1c9315ad1b",
            "type": 2,
            "block": 935029,
            "nonce": 33631,
            "method": "proposeL2Output",
            "status": "ok",
            "fee_sys": 1.151426952e-9,
            "fee_wei": "1151426952",
            "gas_used": 86424,
            "gas_price": "13323",
            "timestamp": "2026-06-07T22:11:07.000000Z",
            "value_sys": 0,
            "value_wei": "0",
            "confirmations": 238
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:50.492Z",
        "request_id": "c97ef20e-e47c-42ef-b6c7-8aeaeee6f95a"
    },
    "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: `0xF891FdE51Be69B327103833E4B06400e864DB38C`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "DystoSoul",
            "type": "ERC-721",
            "symbol": "DYSTOSOUL",
            "address": "0xF891FdE51Be69B327103833E4B06400e864DB38C",
            "holders": 450,
            "decimals": null,
            "total_supply": null,
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:50.625Z",
        "request_id": "c61ffccc-41de-4454-acf6-399c17de3f70"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal search

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

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

**Response:**
```json
{
    "data": {
        "count": 3,
        "query": "DYSTOSOUL",
        "results": [
            {
                "name": "DystoSoul",
                "type": "token",
                "symbol": "DYSTOSOUL",
                "address": "0xF891FdE51Be69B327103833E4B06400e864DB38C"
            },
            {
                "name": "DystoSoul",
                "type": "token",
                "symbol": "DYSTOSOUL",
                "address": "0x5D216aF72Ee4627D76b9173CFdb997c136707451"
            },
            {
                "name": "DystoSoulSyscoin",
                "type": "contract",
                "address": "0xF891FdE51Be69B327103833E4B06400e864DB38C"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:50.738Z",
        "request_id": "827d7566-cbb7-43ae-a34a-972cea5cf7a1"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "syscoin-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 Syscoin NEVM 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. Syscoin NEVM is an EVM Layer 1 merge-mined with Bitcoin; gas, balances and fees are in SYS. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:50.835Z",
        "request_id": "f3ebfa18-b846-4681-afbf-be954d7717dc"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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