Skip to content

One event

GET
/events/{event_id}/

One event by its {block}-{idx} key: an /events/ row plus tao_price_usd, the TAO price at its block’s time. 404 when the canonical chain holds no such event.

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

  • None
event_id
required
string

Composite key {block}-{idx}, e.g. 8361560-14.

The event, an /events/ row plus the TAO price at its block’s time.

Media typeapplication/json

One event on /events/{event_id}/: its /events/ row plus the TAO price at its block’s time.

object
block
required
integer
idx
required

Index of the event in its block, so {block}-{idx} names it on /events/{event_id}/.

integer
extrinsic_idx
required

Index of the extrinsic that emitted it, so {block}-{extrinsic_idx} names it on /extrinsics/{extrinsic_id}/; null outside an extrinsic.

integer
nullable
section
required

Pallet, e.g. SubtensorModule.

string
method
required

Event name, e.g. StakeAdded.

string
phase
required

ApplyExtrinsic({idx}), or null outside an extrinsic.

string
nullable
data
required

The event attributes as a JSON-ENCODED STRING, not an object. Parse it client-side.

string
nullable
tao_price_usd
required

TAO in USD at the block time: the hour holding it, else the closest hour before, and before the hourly series starts (February 2024) the day’s close. Null without a price.

number format: double
nullable

Example generated

{
"block": 1,
"idx": 1,
"extrinsic_idx": 1,
"section": "example",
"method": "example",
"phase": "example",
"data": "example",
"tao_price_usd": 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": "event id must be '{block}-{idx}'",
"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.