Skip to content

Extrinsic counts per category

GET
/extrinsics/counts/

How many extrinsics of one account or one subnet fall in each category, with the list’s outcome and value filters.

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

  • None
account
string

Signer or target SS58 address. Either this or netuid is required; 400 without both.

action
string

Comma-separated subset of add, remove, swap, burn. 400 on any other token, or without a scope.

max_value_rao
integer

Upper bound on the extrinsic’s rao value. Same validation.

min_value_rao
integer

Lower bound on the extrinsic’s rao value. 400 when negative, not an integer, or above max_value_rao, and, like action, without a scope: an account, signer, target, netuid, block, or a from_block/to_block range of 90 days at most.

netuid
integer

Filter to one subnet. 0 is root, a real subnet. 400 when not an integer.

success
string
Allowed values: false true

Keep only succeeded or only failed. Any other value is ignored.

A count for every category, zero included.

Media typeapplication/json

A bare object, no envelope: every category is present, zero-filled.

object
staking
required

Stake added, removed, moved, swapped, burned or recycled, and fund purchases and rebalances; transfer_stake too, except on /v2/.

integer
transfers
required

TAO transfers (Balances.transfer*); on /v2/, transfer_stake too.

integer
evm
required

Ethereum calls.

integer
other
required

Every other call. A batch counts where its sub-calls place it, as its row’s category says.

integer
total
required

The sum of the four categories.

integer

Example generated

{
"staking": 1,
"transfers": 1,
"evm": 1,
"other": 1,
"total": 1
}

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 or netuid parameter is required",
"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"
}
}