Skip to content
TAO$188.32
BTC0.002928
MCap$2.22B
Vol$86.25M

API reference / Blocks

A block's extrinsics

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

The block's extrinsics in index order (inherents first), as slim rows: id, hash, call, signer, outcome, tx_fee (the Substrate fee: payer, asset, amount, tip), gas_fee (EVM gas, TAO), event count, and wrapped (a batch's, proxy's, sudo's or multisig's inner calls counted by kind, and the proxied account) for the wrapper label without args. Pages through meta.page.next_cursor (null on the last page), or by index range: from_index / to_index (inclusive) 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. 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_BLOCK, INVALID_INDEX, INVALID_RANGE, INVALID_LIMIT, INVALID_CURSOR, BLOCK_NOT_FOUND (404), BLOCK_OUT_OF_COVERAGE (404), BLOCK_NOT_YET_INDEXED (404, extension member head_height), UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503).

Path parameters

blockpath, required· string

A decimal block height, or the block hash as 0x + 64 hex (any case).

Query parameters

from_indexquery· integer · 0 to 2147483647

First index of the range (inclusive, 0-based): the extrinsic index.

to_indexquery· integer · 0 to 2147483647

Last index of the range (inclusive): the extrinsic index.

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 block's extrinsics by index (inherents first).

idstring · unit id

The extrinsic's id, {height}-{index} (the canonical id; the hash is a lookup alias only).

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

The block it is in.

indexinteger · unit id

Its index in the block (0-based; inherents first).

hashstring

The extrinsic hash, 0x + 64 lower-case hex. Not unique: an identical extrinsic can recur.

Format: 32-byte hex: 0x and 64 hex digits
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
callobject

The extrinsic's own (top-level) call.

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).

signerstring · can be null

The signing account, SS58 (the source's 0x hex, rendered). Null for inherents and unsigned extrinsics.

Format: SS58 address
successboolean

Whether the extrinsic's call succeeded (System.ExtrinsicSuccess).

tx_feeobject · can be null

The Substrate transaction fee the chain states for this extrinsic: payer, asset, amount_rao (in the paid asset, the tip excluded), tip_rao, and for an alpha fee tao_equivalent_rao. The whole fee in TAO terms is amount_rao + tip_rao (tao) or tao_equivalent_rao + tip_rao (alpha). Null when none was charged: inherents, unsigned extrinsics and Ethereum.transact (which pays EVM gas only, in gas_fee).

9 fields in tx_fee
payerstring

The account that paid, SS58 (the source's 0x hex, rendered): the account the chain's fee event names (TransactionFeePaid.who). Not always the signer: a proxy setup can charge the real account, and for weights / commitments / serve_axon it is the signing hotkey's owning coldkey (SubtensorModule.Owner), with a fee of 0. Group fees by payer, never by signer.

Format: SS58 address
assetstring

What the fee was paid in: tao, or alpha of netuid (TransactionFeePaidWithAlpha: the fee extension sold the payer's alpha to pay it). It names amount_rao's denomination. New values may be added; show an unknown value as is (or generically).

netuidinteger · unit id · can be null

When asset is alpha: the subnet whose alpha paid. Null for tao.

amount_raostring · unit rao (÷1e9)

The fee in the paid asset's base unit (decimal string), the tip excluded: rao when asset is tao, alpha rao of netuid when asset is alpha (a mixed-denomination field: x-unit keeps rao as the 1e9 scale and asset names the denomination; never add an alpha amount to TAO). In TAO: TransactionFeePaid.actualFee - tip; in alpha: TransactionFeePaidWithAlpha.alphaFee. The whole fee in TAO terms is amount_rao + tip_rao for tao, tao_equivalent_rao + tip_rao for alpha.

Format: whole number, as a string · on chain: u64
tip_raostring · unit rao (÷1e9)

The tip, rao (TAO, decimal string): TransactionFeePaid.tip, paid on top of amount_rao.

Format: whole number, as a string · on chain: u64
tao_equivalent_raostring · unit rao (÷1e9) · can be null

When asset is alpha: the TAO the alpha sale realized to pay the fee, rao (TransactionFeePaidWithAlpha.taoAmount); always present on an alpha fee. Null for tao. The fee's cost in TAO terms is tao_equivalent_rao + tip_rao, but no TAO left the payer for it: never add it to amount_rao (alpha) or sum it with stated TAO movements (transfers, balances) as if TAO had moved.

Format: whole number, as a string · on chain: u64
amount_usdstring · unit usd · 6 decimals · can be null

The fee in USD (6 decimals): the TAO it cost (amount_rao for tao; for alpha its tao_equivalent_rao) at the TAO/USD price of the block's own minute. Derived (usd_source), never stated by the chain. Null when no price exists for that minute: unknown, never 0.

Format: decimal number, as a string
tip_usdstring · unit usd · 6 decimals · can be null

tip_rao in USD at the same price (6 decimals). Null when no price exists (unknown, never 0).

Format: decimal number, as a string
usd_sourcestring

Where the USD amounts come from (an opaque identifier): derived (the chain's fee amount times the market TAO/USD of the block's minute), never a chain statement. Show them as approximate; sum the _rao amounts, not these, for exact totals. New values may be added; show an unknown value as is (or generically).

gas_feeobject · can be null

The EVM gas the chain settled for this extrinsic, always TAO: payer, from (the H160 sender), amount_rao (the base fee only). Present on Ethereum.transact and EVM.call / EVM.create; null on every other extrinsic.

3 fields in gas_fee
payerstring

The account that paid the gas, SS58 (the source's 0x hex, rendered): the account mapped from from. Not necessarily the tx_fee payer (a signed EVM.call charges its signer the Substrate fee and the mapped account the gas). Group fees by payer.

Format: SS58 address
fromstring

The H160 sender, 0x + 40 lower-case hex, as the EVM transaction or call names it (not rendered; payer is the account it maps to).

Format: EVM address: 0x and 40 hex digits
amount_raostring · unit rao (÷1e9)

The gas paid, always TAO, rao (decimal string): the Balances withdraw minus the refund on the payer, i.e. the gas at the base fee only, never gas_used x effective_gas_price (a legacy transaction priced above the base fee did not pay that price).

Format: whole number, as a string · on chain: u64
event_countinteger · unit count

Events the extrinsic emitted (phase extrinsic).

wrappedobject · can be null

For a wrapper call (Utility.batch / batch_all / force_batch / as_derivative / dispatch_as / dispatch_as_fallible / with_weight / if_else, Proxy.proxy / proxy_announced, every Sudo call, Multisig.as_multi / as_multi_threshold_1): what it dispatched, counted by kind, and the proxied account. Null for every other call.

3 fields in wrapped
countinteger · unit count

Direct inner calls (one level below the extrinsic's call).

callsarray of objects

The direct inner calls by kind, in the order each kind first appears.

3 fields in calls (each item)
palletstring

The inner call's pallet.

namestring

The inner call's name.

countinteger · unit count

How many direct inner calls of this kind.

realstring · can be null

For Proxy.proxy / proxy_announced: the proxied (real) account the call acted for, SS58 (the source's 32-byte hex, rendered). Null for every other wrapper, and when the proxy named the real account by another MultiAddress form than an account id (an index, a 20-byte or raw address).

Format: SS58 address
evm_tx_hashstring · can be null

For Ethereum.transact: the EVM transaction's hash, 0x + 64 lower-case hex (what an EVM explorer and wallets show; not the extrinsic hash). Null on every other call, and on a transact the EVM never ran (rejected before dispatch, e.g. CallFiltered: there is no EVM transaction).

Format: 32-byte hex: 0x and 64 hex digits
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).

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 · 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.