Skip to content
TAO$188.12
BTC0.002928
MCap$2.21B
Vol$86.07M

API reference / Extrinsics

An extrinsic's call tree

GET/api/v2/extrinsics/{id_or_hash}/calls
Status
Stable
Auth
API key or OAuth access token
Scope
data:read
Rate limit
plan

The extrinsic's call tree in preorder (its own call, then each child before its siblings), each with position (0-based in preorder), depth, parent, origin, status (executed, reverted, not_executed), outcome, error and event count; no args (GET /api/v2/calls/{id} has them).

Full description

The extrinsic's call tree in preorder (its own call, then each child before its siblings), each with position (0-based in preorder), depth, parent, origin, status (executed, reverted, not_executed), outcome, error and event count; no args (GET /api/v2/calls/{id} has them). Pages through meta.page.next_cursor (null on the last page), or by index range: from_index / to_index (inclusive) (by position) are dense, so a client can fetch ranges in parallel; both combine (a cursor continues inside the range). meta.page.total is exact. A page of a block 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, INVALID_INDEX, INVALID_RANGE, INVALID_LIMIT, INVALID_CURSOR, EXTRINSIC_NOT_FOUND (404; asked by hash, an extrinsic not seen yet carries extension member indexed_through_height, the newest finalized block processed: a later retry may find it), EXTRINSIC_OUT_OF_COVERAGE (404, below meta.coverage.from_height while earlier history is still being prepared), EXTRINSIC_NOT_YET_INDEXED (404, above the indexed head; extension members head_height and indexed_through_height), AMBIGUOUS_HASH (409: more than one extrinsic has this hash; extension member candidates, their ids, oldest first: ask by id), UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503).

Path parameters

id_or_hashpath, required· string

The extrinsic id, {height}-{index} (e.g. 9190000-5), or its hash, 0x + 64 hex (any case). A hash is a lookup alias: when several extrinsics share it, the answer is a 409 AMBIGUOUS_HASH listing their ids.

Query parameters

from_indexquery· integer · 0 to 2147483647

First index of the range (inclusive, 0-based): the call's position.

to_indexquery· integer · 0 to 2147483647

Last index of the range (inclusive): the call's position.

limitquery· integer · default 25 · 1 to 1000

Page size, 1..1000 (default 25).

cursorquery· string · up to 200 characters

meta.page.next_cursor of the previous page, passed back unchanged with the same other parameters. It is opaque and bound to them: a cursor used with different parameters, or altered, is a 400 INVALID_CURSOR.

includequery· string

names adds the top-level included.names: every distinct account on the page (accounts in data at any depth, event args included) keyed by its SS58 address, each {identity: {name} | null, label: {text, source, confidence, verified, inferred, as_of} | null}; the on-chain identity and the off-chain label are kept apart, and a label is never a chain fact. A missing key means 'not looked up', null means 'none'. At most 500 accounts (included.names_truncated). Still one call (the data source sideloads them in the same statement); an answer with names is cached as a head answer (names follow the head). Anything else is a 400 INVALID_INCLUDE.

Response

data is a list of objects 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 extrinsic's calls in preorder (a call, then its children), by position.

idstring · unit id

The call's id: the extrinsic id for its own call (9190000-5), then .{child} per level (9190000-5.0.1), so a call id starts with its extrinsic id.

Pattern: ^[0-9]+-[0-9]+(\.[0-9]+)*$
extrinsic_idstring · unit id

The extrinsic ({height}-{index}).

Format: block and index, such as 4200000-3
heightinteger · unit block

The block it is in.

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
depthinteger · unit count

Level in the tree: 0 for the extrinsic's own call.

parent_idstring · unit id · can be null

The call that dispatched it; null for the extrinsic's own call.

Pattern: ^[0-9]+-[0-9]+(\.[0-9]+)*$
callobject

The call's kind.

2 fields in call
palletstring

The pallet, as in the runtime metadata (e.g. SubtensorModule).

namestring

The call, as in the runtime metadata (snake_case, e.g. add_stake).

originobject · can be null

The origin it was dispatched with; null when none is recorded (inherents, and calls that were never dispatched or were rolled back).

3 fields in origin
kindstring

signed (an account: the signer, or the proxied account inside Proxy.proxy), root (e.g. inside Sudo.sudo), none (unsigned) or other (any other origin: raw carries it). New values may be added; show an unknown value as is (or generically).

accountstring · can be null

For signed: the account, SS58 (the source's 32-byte hex, rendered). Null for the other kinds.

Format: SS58 address
rawobject · can be null

Only for kind other: the stored origin as decoded JSON (an object). Absent otherwise.

statusstring

executed (it ran; see success), reverted (it ran but an enclosing failure rolled it back, e.g. in a failed batch_all) or not_executed (never dispatched: a batch stopped before it, or a proxy check failed). New values may be added; show an unknown value as is (or generically).

successboolean

True when it executed and succeeded; false otherwise.

errorobject · can be null

Why it failed, when it executed and failed itself; null otherwise.

5 fields in error
kindstring

The DispatchError variant in snake_case: module (a pallet's error: pallet, name, docs), bad_origin, token, arithmetic, cannot_lookup, ... (an open set), or other when the error could not be decoded (raw then carries it).

palletstring · can be null

The pallet that raised a module error; null for other kinds.

namestring · can be null

The pallet error's name (e.g. SlippageTooHigh); null for other kinds or when not decoded.

docsstring · can be null

The error's documentation from the runtime metadata; null when there is none.

rawobject · can be null

Only when the error could not be decoded (kind other, or a module error without a name): the stored error value as decoded JSON (an object). Absent otherwise.

event_countinteger · unit count

Events this call emitted (its call_id). Pre- and post-dispatch events (the fee withdraw, refund, TransactionFeePaid, ExtrinsicSuccess / ExtrinsicFailed) belong to no call and are not counted (from block 7,089,968; below it the event dictionary's attribution).

is_wrapperboolean

True when the call dispatched inner calls (it has child rows: a batch, proxy, sudo, ...).

deferred_bystring · can be null

Why a not_executed call did not run when it was not refused but kept for later: multisig = a Multisig.as_multi that was not the final approval stored it, waiting for the remaining approvals (it runs in the extrinsic carrying the last one). The call did not run here; deferred_by says why. Null on every other call (and on an answer read before the source served it). Only multisig is defined. New values may be added; show an unknown value as is (or generically).

runtime_codeobject · can be null

The runtime upgrade this row carries: on a System.set_code / set_code_without_checks call row, its code; on an extrinsic row, the code of a set_code call anywhere in its call tree (e.g. under Sudo.sudo). The code itself is never served (its args are withheld above 16 KiB, see args_truncated). Null on every other row, and on an answer read before the source served it.

4 fields in runtime_code
code_hashstring

blake2_256 of the runtime code bytes the call carried (the blob stored at :code; the hash node tooling reports for a runtime), 0x + 64 lower-case hex.

Format: 32-byte hex: 0x and 64 hex digits
code_bytesinteger · unit count

The runtime code's size in bytes (the wasm blob, not its hex).

spec_version_afterinteger · unit id · can be null

The runtime spec that executed the next block (the upgrade's result). Null when the call did not succeed (no upgrade happened).

download_urlstring · can be null

Where to download this code: our published copy (the file GET /api/v2/runtimes/{spec_version}/code links, matched by code_hash; static storage, no API key). Null when it is not published: not yet (the publishing job runs after an upgrade), or never (a failed upgrade's code never ran on chain).

multisig_operationobject · can be null

The multisig operation this row's Multisig.* call acted on (an extrinsic row: its top-level call), with its role. Null on every other row, and on an answer read before the source served it.

4 fields in multisig_operation
accountobject

The multisig account (derived from the call's signatories).

2 fields in account
ss58string

The account, SS58 (prefix 42).

Format: SS58 address
hexstring

The same 32-byte account id, 0x + 64 lower-case hex (the public key).

Format: 32-byte hex: 0x and 64 hex digits
timepointobject · can be null

The operation's timepoint (the extrinsic that opened it). Null only on a failed_attempt that named none (or none that can name an extrinsic).

2 fields in timepoint
heightinteger · unit block

Its block.

indexinteger · unit id

Its extrinsic index in the block.

call_hashstring · can be null

The operation's call hash, 0x + 64 lower-case hex. Null only on a failed_attempt whose args carry none.

Format: 32-byte hex: 0x and 64 hex digits
rolestring

What this call did: created (NewMultisig), approved (MultisigApproval), executed (MultisigExecuted: the final approval dispatched the call; an as_multi_threshold_1 too), cancelled (MultisigCancelled) or failed_attempt (no Multisig event: the call failed or was rolled back; the account derived from its signatories, timepoint and call hash from its own args where it carries them). A closed set. New values may be added; show an unknown value as is (or generically).

intended_originobject · can be null

The origin the call ran with, or would have run with: origin when it was dispatched; for a reverted or not_executed call, its batch's origin through Utility.batch / batch_all / force_batch wrappers (null under any other wrapper, where the origin it would have had is not known). GET /calls?origin= matches this member. Null also on an answer read before the source served it.

3 fields in intended_origin
kindstring

signed (an account), root (e.g. inside Sudo.sudo), none (unsigned) or other (any other origin: raw carries it). New values may be added; show an unknown value as is (or generically).

accountobject · can be null

For signed: the account, as {ss58, hex}. Null for the other kinds.

2 fields in account
ss58string

The account, SS58 (prefix 42).

Format: SS58 address
hexstring

The same 32-byte account id, 0x + 64 lower-case hex (the public key).

Format: 32-byte hex: 0x and 64 hex digits
rawobject · can be null

Only for kind other: the stored origin as decoded JSON (an object). Absent otherwise.

extrinsic_hashstring · can be null

The hash of the call's extrinsic, 0x + 64 lower-case hex. Null only on an answer read before the source served it.

Format: 32-byte hex: 0x and 64 hex digits
block_hashstring · can be null

The hash of the call's block, 0x + 64 lower-case hex. Null only on an answer read before the source served it (the call detail has always served it).

Format: 32-byte hex: 0x and 64 hex digits
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, _3 when repeated), else arg0, arg1. A field typed NetUidStorageIndex is always netuid_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 in meta.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. Null also when args_truncated is true.

args_truncatedboolean

True when the args are larger than 16 KiB (16384 bytes) of JSON: args is then null and args_bytes gives their size. Only runtime upgrades (System.set_code and every wrapper around it: Sudo.sudo, Proxy.proxy, Multisig.as_multi) and very large batches get that big; a batch's children are rows of their own (/extrinsics/{id}/calls). The full args are not served by this API (read the block from a chain node). False otherwise.

args_bytesinteger · unit count · can be null

When args_truncated is true: the args' size in bytes of JSON (above 16384). Null when the args are served (and on an extrinsic's call rows read before the source stated the size).

positioninteger · unit id

Its 0-based position in the extrinsic's call tree in preorder (dense; from_index / to_index page by it).

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), slow public, max-age=300, stale-while-revalidate=600 (state that moves in minutes or days) or tip public, 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). Never immutable. no-store on 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-revalidate and stale-if-error; no-store with X-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, with X-BTAI-Stale-As-Of, Age (its seconds since then) and Warning: 110 - "Response is Stale", and Cache-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 · 409 · 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.

From the API's published specification, version 1.165.0.