One event
https://api.bittensor.ai/api/v2/events/{id}- Status
- Stable
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
One event: the list row (block, index, phase, extrinsic and call ids, kind, named args) plus the block hash. An event at or below meta.at is final and cached as settled. Ids: an extrinsic or an event is {height}-{index}, a call {height}-{extrinsic index} then .{child} per level (9190000-5.0.1); leading zeros are dropped. Anything else is a 400 INVALID_ID. Earlier id forms are accepted too: zero-padded (0009190000-000005), and on /calls/{id} the call ids {height}-{extrinsic}-{n} (an executed call; n counts the extrinsic's executed calls in postorder, not a position:0009190005-000006-000001 is 9190005-6.1) and {height}-{extrinsic}-s{path} (a never-dispatched call: 0009155314-000010-s000000.000003 is 9155314-10.0.3). The answer is the canonical id's, and a Content-Location header names the canonical URL whenever the path's id was not in canonical form (no redirect). Accounts at the top level of a row (signer, wrapped.real, origin.account, tx_fee.payer, gas_fee.payer) are SS58; gas_fee.from stays the EVM sender's H160 hex. args are named fields as the data source renders them (accounts in them already SS58), versioned by meta.data_version's args/... part. Errors are application/problem+json: INVALID_ID, EVENT_NOT_FOUND (404), EVENT_OUT_OF_COVERAGE (404), EVENT_NOT_YET_INDEXED (404, extension member head_height), UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503).
Path parameters
- idpath, required· string
The event id,
{height}-{index}(e.g.9190000-2).
Query parameters
- includequery· string
Reserved for opt-in sections. This route defines none yet; the parameter is declared so that adding one later is additive for generated clients. Any value is a 400
INVALID_INCLUDE.
Response
data is an object with these fields. Amounts are integer strings in their base unit, and null means unknown, never zero (see Units and formats). meta.at names the block the answer was read at.
The event.
- idstring · unit id
The event's id,
{height}-{index}(index = its position in the block's System.Events).- Format: block and index, such as 4200000-3
- heightinteger · unit block
The block it was emitted in.
- indexinteger · unit id
Its index in the block's System.Events (0-based).
- timestring (date-time) · can be null
The block's Timestamp.set (RFC 3339 UTC, milliseconds). Null for block 0 only.
- Format: date and time, ISO 8601 in UTC
- phasestring
When it was emitted:
initialization(block hooks before the extrinsics, e.g. emission),extrinsic(while applying an extrinsic) orfinalization(block hooks after them; none after block 9,155,260). New values may be added; show an unknown value as is (or generically).- extrinsic_idstring · unit id · can be null
The extrinsic it was emitted under (
{height}-{index}); null in theinitializationandfinalizationphases.- Format: block and index, such as 4200000-3
- dispatch_phasestring · can be null
Where in applying its extrinsic the event was emitted, from the chain's per-event trace:
pre_dispatch(before the call ran: the fee withdraw),dispatch(by the call or the calls it dispatched) orpost_dispatch(after it: the fee refund, TransactionFeePaid, System.ExtrinsicSuccess / ExtrinsicFailed). Null outside theextrinsicphase, and below block 7,089,968 (before the trace covers). New values may be added; show an unknown value as is (or generically).- call_idstring · unit id · can be null
The call that emitted it (a call id). Null outside a dispatched call: the block phases, and the extrinsic's pre- and post-dispatch events (
dispatch_phasepre_dispatch/post_dispatch: the fee withdraw, the refund, TransactionFeePaid, ExtrinsicSuccess / ExtrinsicFailed), which no call emits, so per-call event lists and counts never include them. Below block 7,089,968 (dispatch_phasenull) the attribution is the event dictionary's, which puts a wrapper's pre-dispatch events on its first child.- Pattern:
^[0-9]+-[0-9]+(\.[0-9]+)*$ - eventobject
The event's kind.
2 fields in event
- palletstring
The pallet, as in the runtime metadata (e.g.
SubtensorModule).- namestring
The event, as in the runtime metadata (PascalCase, e.g.
StakeAdded).
- argsobject · can be null
The arguments as named fields, served exactly as the data source renders them (never re-rendered here). Names: the block's runtime metadata names each field (snake_case); unnamed tuple fields take their names from a reviewed list of override names (each entry traced to the subtensor source), else the snake_case of the field's type name (
_2,_3when repeated), elsearg0,arg1. A field typedNetUidStorageIndexis alwaysnetuid_index(= mechanism × 4096 + netuid), never a netuid. Values: accounts (AccountId32 by metadata type) are SS58; amounts are decimal strings in their base unit; enums are{__kind, value}; hashes and bytes are 0x hex; a nested call (batch, proxy, sudo) is{pallet, name, args}. The naming rule and the override names are versioned inmeta.data_version(args/<rule>.<overrides>), so a renamed field is a new version. Free-form: the members depend on the kind and the runtime, so this schema does not list them. Null only when the source stored no arguments.- error_palletstring · can be null
The DispatchError this event carries, decoded with the block's runtime: for a module error the pallet that raised it (e.g.
Swap), as an extrinsic'serror.pallet. Carried by System.ExtrinsicFailed, Utility.BatchInterrupted / ItemFailed, and theErrresults of Proxy.ProxyExecuted, Multisig.MultisigExecuted, Sudo.Sudid / SudoAsDone, Utility.DispatchedAs and Scheduler.Dispatched. Null on every other event, on anOkresult, for a non-module error (BadOrigin,Token, ...) and when the error could not be decoded.- error_namestring · can be null
The DispatchError's name, as an extrinsic's
error.name: a module error's (e.g.PriceLimitExceeded,HotKeyAlreadyRegisteredInSubNet), or the inner variant of aToken/Arithmetic/Transactionalerror (error_palletthen null). Null when the event carries no DispatchError, or it has no name (BadOrigin, an undecoded error).- block_hashstring
The block's hash, 0x + 64 lower-case hex.
- Format: 32-byte hex: 0x and 64 hex digits
Response headers
10 headers: ETag, Cache-Control, CDN-Cache-Control, X-BTAI-Stale, X-BTAI-Stale-As-Of, RateLimit-Policy, RateLimit, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
- ETag
Strong validator of this answer. Send it back as
If-None-Match: an unchanged answer is a 304 Not Modified without a body. A settled answer's validator leaves the chain head out, so it stays valid as the head moves.- Cache-Control
One of three classes: settled
public, max-age=3600, stale-while-revalidate=86400(pinned to a block that cannot move), slowpublic, max-age=300, stale-while-revalidate=600(state that moves in minutes or days) or tippublic, max-age=6, stale-while-revalidate=12(follows the chain head); the label routes are cached until the next nightly copy (public, max-age=<seconds>, stale-while-revalidate=60). Neverimmutable.no-storeon an earlier answer served because the data source failed (X-BTAI-Stale).- CDN-Cache-Control
The same class for shared caches (RFC 9213; browsers ignore it): settled 24 h, slow 300 s, tip 6 s, each with
stale-while-revalidateandstale-if-error;no-storewithX-BTAI-Stale.- X-BTAI-Stale
Present only when the data source failed to answer (it timed out or was unavailable) and an earlier answer to the same request is served instead of a 503 (stale if error, RFC 5861). Then
if-error, withX-BTAI-Stale-As-Of,Age(its seconds since then) andWarning: 110 - "Response is Stale", andCache-Control: no-store: the answer is never kept as fresh, and a later request reads again. Prices and quotes are never served this way.- X-BTAI-Stale-As-Of
With
X-BTAI-Stale: when the earlier answer served was produced, an RFC 3339 UTC time (2026-10-21T12:00:00Z).- RateLimit-Policy
The tier's request quota of the current window (IETF draft), e.g.
"tier";q=600.- RateLimit
Requests left in the current window and the seconds until it resets (IETF draft), e.g.
"tier";r=597;t=42.- X-RateLimit-Limit
The tier's request quota of the current window.
- X-RateLimit-Remaining
Requests left in the current window.
- X-RateLimit-Reset
When the current window resets, Unix seconds.
Status codes
200 · 304 · 400 · 401 · 402 · 403 · 404 · 429 · 500 · 502 · 503
304 Not Modified: the If-None-Match validator still matches; no body.
Error codes
The codes this endpoint can return. Each links to what it means and what to do.
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- EVENT_NOT_FOUND
- EVENT_NOT_YET_INDEXED
- EVENT_OUT_OF_COVERAGE
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_ID
- INVALID_INCLUDE
- PAYMENT_REQUIRED
- PLAN_REQUIRED
- RATE_LIMITED
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.165.0.