# Dash On-Chain API
> Live on-chain data from the Dash (DASH) blockchain — a payments-focused cryptocurrency — via the public Dash Insight explorer, clean JSON and no cache. Dash uses X11 proof-of-work plus a second tier of collateralised masternodes that power InstantSend (near-instant locked payments) and ChainLocks, and an on-chain treasury that funds proposals. Read the chain state (block height, difficulty, peer connections, protocol version and relay fee); fetch a block by height or hash; look up an address's DASH balance, total received and sent and transaction count; or resolve a transaction's block, value, fee, input/output counts and its InstantSend lock status. Read live from Dash, nothing stored. This is Dash's own X11, masternode-tier and InstantSend ledger — distinct from the Bitcoin, Decred, Ergo, Nervos and other on-chain APIs and from price feeds.

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

## Pricing
- **Free** (Free) — 900 calls/Mo, 3 req/s
- **Starter** ($10/Mo) — 32,000 calls/Mo, 12 req/s
- **Pro** ($28/Mo) — 165,000 calls/Mo, 28 req/s
- **Business** ($65/Mo) — 830,000 calls/Mo, 55 req/s

## Endpoints

### Network

#### `GET /v1/network` — Chain state — block height, difficulty, connections, protocol version

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

**Response:**
```json
{
    "data": {
        "chain": "dash",
        "blocks": 2486316,
        "source": "Dash (Insight)",
        "network": "livenet",
        "features": "InstantSend, ChainLocks, on-chain treasury",
        "consensus": "X11 PoW + masternode tier",
        "relay_fee": 1.0e-5,
        "difficulty": 82052285.06427564,
        "connections": 11,
        "native_token": "DASH",
        "node_version": 220000,
        "protocol_version": 70235
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:19.290Z",
        "request_id": "529154a5-7fc4-4e86-8d1a-b502c1213925"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}
```

### Block

#### `GET /v1/block` — A block by height or hash

**Parameters:**
- `height` (query, optional, string) — Block height Example: `2486000`
- `hash` (query, optional, string) — Block hash (64 hex)

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

**Response:**
```json
{
    "data": {
        "hash": "0000000000000030b324d854aad619197a04b50932f0f73e690847265bff3632",
        "time": "2026-06-10T09:14:57.000Z",
        "nonce": 798046450,
        "height": 2486000,
        "source": "Dash (Insight)",
        "chainlock": false,
        "difficulty": 58735010.68157029,
        "miner_pool": "Discus Fish",
        "size_bytes": 16419,
        "merkle_root": "9969ea01f6aa12182fbb2072be9da08494701a355cadfa3214a3bede2549cff2",
        "confirmations": 317,
        "transaction_count": 16
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:19.791Z",
        "request_id": "9ede7b4c-d0c6-4db8-bc88-8a3fe59169d4"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

### Address

#### `GET /v1/address` — An address's DASH balance, received, sent and tx count

**Parameters:**
- `address` (query, required, string) — Dash address (mainnet starts with X) Example: `XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw`

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

**Response:**
```json
{
    "data": {
        "source": "Dash (Insight)",
        "address": "XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw",
        "sent_dash": 83173.86308814,
        "balance_dash": 1895.18919698,
        "received_dash": 85069.05228512,
        "transaction_count": 151274,
        "unconfirmed_balance_dash": 0
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:20.085Z",
        "request_id": "ecbad070-5d41-46a0-843c-fcf4900ec0cf"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transaction

#### `GET /v1/transaction` — A transaction's value, fee, counts and InstantSend lock

**Parameters:**
- `txid` (query, required, string) — Transaction id (64 hex) Example: `d6e93e038404cb0572ef3313828992e5a50d8360e671ed6e5765368175ab081b`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/dash-api/v1/transaction?txid=d6e93e038404cb0572ef3313828992e5a50d8360e671ed6e5765368175ab081b"
```

**Response:**
```json
{
    "data": {
        "txid": "d6e93e038404cb0572ef3313828992e5a50d8360e671ed6e5765368175ab081b",
        "source": "Dash (Insight)",
        "fee_dash": 0,
        "block_time": "2026-06-10T09:14:57.000Z",
        "size_bytes": 1096,
        "input_count": 6,
        "is_coinbase": false,
        "block_height": 2486000,
        "output_count": 6,
        "confirmations": 317,
        "value_in_dash": 60.0006,
        "value_out_dash": 60.0006,
        "instantsend_locked": true
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:20.409Z",
        "request_id": "59ed0d71-7b99-4286-90cb-15b13e06c558"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "blocks": 2486316,
        "source": "Dash Insight explorer API (insight.dash.org, live)",
        "service": "dash-api",
        "consensus": "X11 PoW + masternode tier",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/block": "A block by height or hash (height=2486000 or hash=64 hex).",
            "GET /v1/address": "An address's DASH balance, received, sent and tx count (address=X...).",
            "GET /v1/network": "Chain state — block height, difficulty, connections, protocol version, relay fee.",
            "GET /v1/transaction": "A transaction's value, fee, counts and InstantSend lock (txid=64 hex)."
        },
        "description": "Live on-chain data from the Dash (DASH) blockchain, a payments-focused cryptocurrency, via the public Dash Insight explorer API. Dash uses X11 proof-of-work plus a second tier of collateralised masternodes that power InstantSend (near-instant locked payments) and ChainLocks, and an on-chain treasury. The network endpoint returns the chain state (block height, difficulty, connections, protocol version, relay fee); the block endpoint returns a block by height or hash; the address endpoint returns an address's DASH balance, total received and sent and transaction count; the transaction endpoint returns a transaction's block, value, fee, input/output counts and its InstantSend lock status. Live, no key, nothing stored. Distinct from the Bitcoin, Decred, Ergo, Nervos and o
…(truncated, see openapi.json for full schema)
```


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