# 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"
```

### 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"
```

### 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"
```

### 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"
```

### Meta

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

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


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