Skip to content

Accounts ranked by total TAO

GET
/accounts/

Every coldkey of the latest daily balance snapshot, ranked by total value: free TAO, plus the reserved balance (proxy and identity deposits), plus root stake, plus alpha valued in TAO, plus root rewards (the coldkey’s shares in the root validators’ funds, at what a claim would pay). The amounts are integers in rao and the USD values numbers. Rank ascending, page-number pagination.

Rate limit: 300 requests per minute per IP (scope explore).

  • None
max_value_rao
integer

Inclusive ceiling on the same total, in rao. A ceiling below the floor matches nothing: an empty 200, not a 400.

min_value_rao
integer

Inclusive floor on the total (free + reserved + root stake + alpha valued in τ + root rewards), in rao. 400 unless a non-negative integer; blank = absent.

page
integer

1-based page number. Defaults to 1; an unparseable value falls back to it.

page_size
integer

Rows per page. Default 50, clamped to [1, 100].

q
string

Filter on identity name, or on any fragment of an SS58 address (case-insensitive).

One page of coldkeys, in rank order.

Media typeapplication/json
object
results
required

This page’s coldkeys, in rank order.

Array<object>

One account. Its USD figures are numbers here, while /portfolio-balance/ serves the same figures as decimal strings.

object
rank
required

Position by total value; 1 is the largest.

integer
rank_alpha
required

Position by staked_alpha_in_tao; 1 is the largest.

integer
account
required

The coldkey.

string
name
required

Its on-chain identity name, if any.

string
nullable
free
required

In rao. Free TAO, not staked.

integer
reserved
required

In rao. The balance the chain holds reserved for a deposit, such as a proxy’s or an identity’s: the coldkey’s, though locked.

integer
staked_tao
required

In rao. TAO staked on root.

integer
staked_alpha
required

In alpha rao. The alpha of every subnet added up: one count across pools of different prices, not a value. The value is staked_alpha_in_tao.

integer
staked_alpha_in_tao
required

In rao. What that alpha would fetch sold through its pools.

integer
root_rewards
required

In rao. What the coldkey’s shares in the root validators’ funds would pay if claimed: root staking rewards not claimed yet, plus any shares bought.

integer
total_tao
required

In rao, despite the name. The sum of free, reserved, staked_tao, staked_alpha_in_tao and root_rewards.

integer
free_in_usd
required

In USD. free at the snapshot’s TAO price.

number format: double
reserved_in_usd
required

In USD. reserved at the snapshot’s TAO price.

number format: double
staked_tao_in_usd
required

In USD. staked_tao at the snapshot’s TAO price.

number format: double
staked_alpha_in_usd
required

In USD. staked_alpha_in_tao at the snapshot’s TAO price.

number format: double
root_rewards_in_usd
required

In USD. root_rewards at the snapshot’s TAO price.

number format: double
total_usd
required

In USD. The sum of the five USD figures.

number format: double
pagination
required

On the empty response served before any snapshot exists, has_previous is false even past page 1.

object
page
required

The page served, counting from 1.

integer
page_size
required

Rows per page, the requested size within the route’s bounds.

integer
total_count
required

Exact number of matching rows, whether or not the pages can reach them all.

integer
reachable_count
required

Rows the pages can reach: total_pages times page_size, capped at total_count. Below total_count only when the set runs deeper than the offset cap; read the rest through the cursor where the route offers one.

integer
total_pages
required

Clamped to the deepest page the API will serve (offset <= 10000).

integer
has_next
required

Whether a next page exists within the deepest page served.

boolean
has_previous
required

True past page 1.

boolean
next_cursor

Where the list offers a cursor form (/v2/subnets/{netuid}/?delegators=true, /v2/validators/{hotkey}/): the after= that reads the page after this one, null on the last page, and valid only under the sort, direction and grouping that issued it (a 400 otherwise). Absent on lists with no cursor form.

string
nullable

Example generated

{
"results": [
{
"rank": 1,
"rank_alpha": 1,
"account": "example",
"name": "example",
"free": 1,
"reserved": 1,
"staked_tao": 1,
"staked_alpha": 1,
"staked_alpha_in_tao": 1,
"root_rewards": 1,
"total_tao": 1,
"free_in_usd": 1,
"reserved_in_usd": 1,
"staked_tao_in_usd": 1,
"staked_alpha_in_usd": 1,
"root_rewards_in_usd": 1,
"total_usd": 1
}
],
"pagination": {
"page": 1,
"page_size": 1,
"total_count": 1,
"reachable_count": 1,
"total_pages": 1,
"has_next": true,
"has_previous": true,
"next_cursor": "example"
}
}

A parameter failed its check, which message names. code is usually VALIDATION_ERROR.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleVALIDATIONERROR

VALIDATION_ERROR

{
"error": true,
"code": "VALIDATION_ERROR",
"message": "page too deep: max page is 401 for page_size=25",
"detail": null
}

Rate limit exceeded (300/minute, per IP). Retry-After carries the seconds to wait.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRATELIMITED

RATE_LIMITED

{
"error": true,
"code": "RATE_LIMITED",
"message": "Request was throttled",
"detail": {
"retry_after": 12
}
}
Retry-After
integer

Seconds before the next request is accepted.

QUERY_TIMEOUT: the query exceeded its budget. detail carries budget_ms, elapsed_ms, path and query.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleQUERYTIMEOUT

QUERY_TIMEOUT

{
"error": true,
"code": "QUERY_TIMEOUT",
"message": "query exceeded the 12000 ms budget; retry, or narrow the requested range",
"detail": {
"budget_ms": 12000,
"elapsed_ms": 12004,
"path": "/trades/summary/",
"query": "coldkey=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY&resolution=day"
}
}