Skip to content

Search blocks, extrinsics, subnets, validators and accounts

GET
/search/

Matches the query against block numbers and hashes, a full extrinsic hash, subnet names and netuids, validator names and addresses, and account addresses. Results come in that order, each tagged with its type, at most limit per category; a validator needs 1,000 TAO of delegated stake to appear.

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

Stable: the operation and its fields leave only after 180 days of notice.

  • None
limit
integer

Maximum rows. Default 10, clamped to 100. An unparseable value falls back to the default.

q
string

The query. Under 2 characters returns an empty result rather than an error; the account leg needs 3 and matches any fragment of an address, case-insensitively.

type
string
Allowed values: account block extrinsic subnet validator

Restrict to one category. Omit for all five. 400 on any other value.

The matches, each tagged with its type; an empty list when nothing matches.

Media typeapplication/json
object
results
required

Blocks, then the extrinsic of a full hash, subnets, validators and accounts, at most limit of each, every row tagged with its type.

Array
One of: discriminator: type
object
type
required

Always block: the row’s discriminator.

  • block - block
string
Allowed values: block
block_number
required
integer
hash
required

The block hash, 0x-prefixed hex.

string
timestamp
required

Block time; null when unknown.

string format: date-time
nullable
extrinsics_count
required

Extrinsics in the block.

integer
events_count
required

Events in the block.

integer
count
required

len(results), not a total: the query is capped by ?limit=.

integer

Example

{
"results": [
{
"type": "block"
}
]
}

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": "type must be one of ['account', 'block', 'extrinsic', 'subnet', 'validator']",
"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.