Skip to content

Root dividends per validator for one coldkey

GET
/portfolio-root-yield/

Per validator whose fund the coldkey’s root stake earned shares of, or whose shares it bought, since its last claim of that fund: the shares, their value when paid, the stake held, and the purchases with the τ they held. With the position’s value now they split its return into the dividends and the basket’s move since, and state the whole position’s return.

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

  • None
account
required
string

Coldkey SS58 address. 400 when missing or containing a NUL byte.

One row per fund, empty for a coldkey that never staked root or bought shares.

Media typeapplication/json

What a coldkey’s root stake with each validator was paid in fund shares, since its last claim of each.

object
account
required

The coldkey.

string
history_from
required

The first fund point carrying basket_rate. Null until the backfill ran.

string format: date-time
nullable
as_of
required

The latest hourly point read.

string format: date-time
nullable
results
required

One row per fund, by hotkey.

Array<object>

One fund the coldkey staked root on, holds root stake on, bought into or claimed from since runtime 441.

object
hotkey
required

The validator whose fund it is.

string
since
required

Window start: the coldkey’s last claim of this fund, else the start of the rate history.

string format: date-time
last_claim_block
required

Block of that claim. Null when the coldkey never claimed this fund.

integer
nullable
dividend_shares
required

Fund shares its root stake earned since since, in raw BasketShares units.

integer
dividends_tao
required

The same shares, each valued at the fund’s share price when paid (τ).

number format: double
stake_tao_days
required

Its root stake on this validator times the days held, over the same span (τ·days).

number format: double
staked_days
required

Days of that span with a stake above zero.

number format: double
stake_tao
required

Its root stake on this validator now (τ).

number format: double
complete
required

False when stake was held for over a day before the first rate point of the window, or the fund’s rate fell (a new fund life).

boolean
bought_tao
required

Τ paid for shares of this fund since since (stake_into_basket); a claim redeems them with the dividends.

number format: double
bought_shares
required

The shares those purchases received, in raw BasketShares units.

integer
bought_tao_days
required

Each purchase’s τ times the days it was held, from its block or the window’s first point to its last (τ·days).

number format: double
bought_days
required

Days the oldest of those purchases was held over the same span; 0 without purchases.

number format: double

Examples

ExamplePortfolioRootYield

One coldkey staking root on one validator

{
"account": "5GjH6dGXehs4rWCMUk6jn3MBLDQSQeoGNVQ7VPiVUdB5m3S6",
"history_from": "2026-08-04T01:20:00Z",
"as_of": "2026-10-22T11:45:00Z",
"results": [
{
"hotkey": "5G9hfkx9wGB1CLMT9WXkpHSAiYzjZb5o1Boyq4KAdDhjwrc5",
"since": "2026-08-03T19:18:36Z",
"last_claim_block": null,
"dividend_shares": 9465639,
"dividends_tao": 0.007020681,
"stake_tao_days": 39.614444,
"staked_days": 39.6144,
"stake_tao": 0,
"complete": true,
"bought_tao": 0,
"bought_shares": 0,
"bought_tao_days": 0,
"bought_days": 0
}
]
}

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": "account is required",
"detail": null
}

RESOURCE_NOT_FOUND. Carries Cache-Control: public, max-age=15, short because a new block or extrinsic is indexed up to a minute late.

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

ExampleRESOURCENOTFOUND

RESOURCE_NOT_FOUND

{
"error": true,
"code": "RESOURCE_NOT_FOUND",
"message": "Not found",
"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"
}
}