# Get dTAO Historical Stake Balance

Returns historical staking balances by coldkey, hotkey and subnet, including their TAO equivalents.

_Source: https://beta.taostats.io/docs/api-reference/stake-balance/get-dtao-stake-balance-history-v1_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/dtao/stake_balance/history/v1
```

Requires an API key in the `Authorization` header.

Returns historical staking balances by coldkey, hotkey and subnet, including their TAO equivalents.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Examples

Get the historical dTAO stake balance for a wallet + validator in subnet 19

```text
https://api.taostats.io/api/dtao/stake_balance/history/v1?coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n&hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=50
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/dtao/stake_balance/history/v1?coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n&hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=50"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/dtao/stake_balance/history/v1?coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n&hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=50', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/dtao/stake_balance/history/v1?coldkey=5GH2aUTMRUh1RprCgH4x3tRyCaKeUi5BfmYCfs1NARA8R54n&hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=50",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `coldkey` | query | `string` | Yes | SS58 or hex format |
| `hotkey` | query | `string` | Yes | SS58 or hex format |
| `netuid` | query | `integer (int32)` | Yes | Subnet |
| `block_number` | query | `integer (int32)` |  |  |
| `block_start` | query | `integer (int32)` |  | Start of block range (inclusive) |
| `block_end` | query | `integer (int32)` |  | End of block range (inclusive) |
| `timestamp_start` | query | `integer (int64)` |  | Start of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) |
| `timestamp_end` | query | `integer (int64)` |  | End of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) |
| `page` | query | `integer (int32)` |  |  |
| `limit` | query | `integer (int32)` |  |  |
| `order` | query | `string` |  | One of `block_number_asc`, `block_number_desc`, `timestamp_asc`, `timestamp_desc`. |

## Responses

### `200` — Stake balances retrieved successfully

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array` | Yes |  |
| `data[].balance` | `string` | Yes |  |
| `data[].balance_as_tao` | `string` | Yes |  |
| `data[].block_number` | `integer (int32)` | Yes |  |
| `data[].coldkey` | `object` | Yes |  |
| `data[].coldkey.hex` | `string` | Yes | The hex format of the hot key |
| `data[].coldkey.ss58` | `string` | Yes | The SS58 format of the hot key |
| `data[].hotkey` | `object` | Yes |  |
| `data[].hotkey.hex` | `string` | Yes | The hex format of the hot key |
| `data[].hotkey.ss58` | `string` | Yes | The SS58 format of the hot key |
| `data[].hotkey_name` | `string, nullable` |  |  |
| `data[].netuid` | `integer (int32)` | Yes |  |
| `data[].timestamp` | `string (date-time)` | Yes |  |
| `pagination` | `object` | Yes |  |
| `pagination.current_page` | `integer (int32)` | Yes |  |
| `pagination.next_page` | `integer (int32), nullable` |  |  |
| `pagination.per_page` | `integer (int32)` | Yes |  |
| `pagination.prev_page` | `integer (int32), nullable` |  |  |
| `pagination.total_items` | `integer (int32)` | Yes |  |
| `pagination.total_pages` | `integer (int32)` | Yes |  |

**Example response**

```json
{
  "data": [
    {
      "balance": "10310773627671",
      "balance_as_tao": "2064023208743",
      "block_number": 5373427,
      "coldkey": {
        "hex": "0x629d10c61ad3c6a4850629ed00b305b8ae897a771ca8778fd248d45f193cfe2b",
        "ss58": "5EJ1D2C8xCua1FwfGprGk5EjjgwraRfjYMUntu4s4sjCwZyX"
      },
      "hotkey": {
        "hex": "0xc2c12c2be75e623a4d0b44564889279d35701ba436179db3a916b9bbc2b0e42c",
        "ss58": "5GU4Xkd3dCGTU3s8VLcHGc5wsD5M8XyxDca5yDQhYm1mVXFu"
      },
      "hotkey_name": "Owner56",
      "netuid": 56,
      "timestamp": "2025-04-17T19:59:00Z"
    },
    {
      "balance": "10309931116925",
      "balance_as_tao": "2066161785123",
      "block_number": 5373066,
      "coldkey": {
        "hex": "0x629d10c61ad3c6a4850629ed00b305b8ae897a771ca8778fd248d45f193cfe2b",
        "ss58": "5EJ1D2C8xCua1FwfGprGk5EjjgwraRfjYMUntu4s4sjCwZyX"
      },
      "hotkey": {
        "hex": "0xc2c12c2be75e623a4d0b44564889279d35701ba436179db3a916b9bbc2b0e42c",
        "ss58": "5GU4Xkd3dCGTU3s8VLcHGc5wsD5M8XyxDca5yDQhYm1mVXFu"
      },
      "hotkey_name": "Owner56",
      "netuid": 56,
      "timestamp": "2025-04-17T18:46:48Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "next_page": null,
    "per_page": 301,
    "prev_page": null,
    "total_items": 301,
    "total_pages": 1
  }
}
```

**Response details**

```text
 {
      "block_number": 5453657,
      "timestamp": "2025-04-28T23:25:00.001Z",
      "hotkey_name": "TAO.app",
      "hotkey": {
        "ss58": "5CoZxgtfhcJKX2HmkwnsN18KbaT9aih9eF3b6qVPTgAUbifj",
        "hex": "0x20b0f8ac1d5416d32f5a552f98b570f06e8392ccb803029e04f63fbe0553c954"
      },
      "coldkey": {
        "ss58": "5HqaAYanMmQUh6agtnsXeWcHJDsoBF4eWwAkUPV7WEG3zZqW",
        "hex": "0xff65514f004c0bc475af33c478c36c2fe74c7e3d107937a0b74e781de7d4cfa1"
      },
      "netuid": 0,
      "subnet_rank": 88, wallet rank in subnet
      "subnet_total_holders": 42984, total holders in subnet
      "balance": "13797839517232", alpha balance as rao
      "balance_as_tao": "13797839517232" tao balance as rao
    },
```

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | Stake balances not found |
| `500` | Internal server error |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
