Extrinsics, filtered
https://api.bittensor.ai/api/v2/extrinsics- Status
- Stable
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
Extrinsics as slim rows.
Full description
Extrinsics as slim rows (id, hash, call, signer, outcome, tx_fee, gas_fee, event count, wrapped), filtered by call kind or pallet (exclude_call leaves kinds out), signer (or several: signers), signed / unsigned, outcome and subnet (netuid: any call in the tree on that subnet, any mechanism), or by hash (hash: every copy of a repeated hash, where an ambiguous hash's 409 browse points). include=args adds the named args. Newest first (order=desc, the default) or oldest first (asc); with no range, the newest rows over all history (no hidden window). from_height / to_height are inclusive heights, from_time / to_time a half-open time window. Cursor paging; with_total=true on the first page (ignored with a cursor) adds meta.page.total and total_exact: exact for an unfiltered list, a kind, a height or time window, or a window and a kind; an index-driven list (netuid, hotkey, signer, origin) or another filter is counted up to 100,000 (total_exact false at the cap: show it as 100,000+); null when it cannot be counted (unknown, never a partial count); a page carrying a total follows the tip. Filters without an index of their own scan at most 20,000 candidates per request (5,000 with args_filter: each candidate's args are rendered), so a page can be short or empty with a non-null next_cursor (meta.page.scan_limited, meta.page.scanned_through_height): keep paging until next_cursor is null. A page bounded below the head (by to_height / to_time, or a cursor page) is cached as settled, unless it reaches, or continues into, blocks below meta.coverage.from_height that are still being indexed. Typed filters (netuid) read an index that is still being filled downward from the head: while it is, meta.coverage.from_height is its floor and complete_from_genesis false (older matches are not served yet; never silently partial), and before it covers anything the answer is 503 NOT_READY. 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_CALL, INVALID_PALLET, UNKNOWN_CALL, INVALID_ADDRESS, INVALID_BOOLEAN, INVALID_NETUID, INVALID_HEIGHT, INVALID_TIME, INVALID_RANGE, INVALID_ORDER, INVALID_LIMIT, INVALID_CURSOR, INVALID_INCLUDE, INVALID_ARGS_FILTER, SCOPE_REQUIRED, INVALID_HASH, INVALID_FILTER (hash with netuid), NOT_READY (503), UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503).
Query parameters
- callquery· array of string
A call kind,
Pallet.call_name(e.g.SubtensorModule.add_stake); repeat the parameter for several (OR, and OR withpallet). Checked for its shape here (400INVALID_CALL); a kind the chain never had is a 400UNKNOWN_CALL.- palletquery· array of string
A pallet (e.g.
SubtensorModule): every call (event) of it; repeat for several. 400INVALID_PALLETfor a malformed name,UNKNOWN_CALL/UNKNOWN_EVENTfor an unknown one.- exclude_callquery· array of string
A call kind to leave out,
Pallet.call_name; repeat for several (e.g. the inherents).- signerquery· string
Only extrinsics this account signed: SS58, or 0x + 64 hex.
- signersquery· array of string
Only extrinsics one of these accounts signed (OR, and OR with
signer): SS58 or 0x + 64 hex, a comma list or the parameter repeated, at most 100 (400FILTER_TOO_LARGEabove; an invalid one is a 400INVALID_ADDRESSnaming its index). A scope forargs_filter. While this filter is not available yet, a request with it fails (SOURCE_NOT_READY).- signedquery· enum · one of true, false
Only signed (
true) or unsigned (false) extrinsics.trueorfalse(lower-case; anything else is a 400INVALID_BOOLEAN).- successquery· enum · one of true, false
Only succeeded (
true) or failed (false) extrinsics.trueorfalse(lower-case; anything else is a 400INVALID_BOOLEAN).- netuidquery· integer · 0 to 65535
Only extrinsics with a call on this subnet anywhere in their call tree.
- from_heightquery· integer · 0 to 2147483647
Only rows at or above this height (inclusive).
- to_heightquery· integer · 0 to 2147483647
Only rows at or below this height (inclusive).
- from_timequery· string (date-time)
Only rows at or after this time (RFC 3339).
- Format: date and time, ISO 8601 in UTC
- to_timequery· string (date-time)
Only rows before this time (RFC 3339; exclusive).
- Format: date and time, ISO 8601 in UTC
- orderquery· enum · one of desc, asc · default desc
desc(newest first, the default) orasc(oldest first).- limitquery· integer · default 25 · 1 to 1000
Page size, 1..1000 (default 25).
- cursorquery· string · up to 200 characters
meta.page.next_cursorof 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 400INVALID_CURSOR.- includequery· string
A comma list:
argsadds each row's named args.namesadds the top-levelincluded.names: every distinct account on the page (accounts indataat 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 400INVALID_INCLUDE.- args_filterquery· string
Only rows whose named args match. A JSON object, or an array of objects (OR of groups), matched against the rows' args as served (v2 names, accounts SS58: a 0x 32-byte account in the filter is normalised to SS58; amounts compare as the served decimal strings). Inside an object every key must match; a key whose value is an array matches any of its values; a nested object matches partially. At most 16 groups and 2048 characters; 400
INVALID_ARGS_FILTERotherwise. It needs a scope, a filter backed by an index:call,pallet,signer,signersornetuid(400SCOPE_REQUIREDwithout one). A filtered page scans at most 5,000 candidates (seemeta.page.scan_limited). Example:args_filter={"netuid":64}withevent=SubtensorModule.StakeAdded.- with_totalquery· enum · one of true, false
true: on the first page (ignored with acursor), addmeta.page.totalandmeta.page.total_exact: exact for an unfiltered list, a kind, a height or time window, or a window and a kind; capped at 100,000 on an account, subnet or hash index or another filter (total_exactfalse: show "100,000+"); null when it cannot be counted.trueorfalse(lower-case; anything else is a 400INVALID_BOOLEAN).- hashquery· string
Only extrinsics with this hash, 0x + 64 hex (any case; 400
INVALID_HASHotherwise): every copy of a repeated hash (an inherent with identical arguments shares one across blocks;GET /extrinsics/{hash}answers it with a 409 conflict whosebrowsemember points here). Newest first by default and paged; combines with the height / time window (jump to a block withfrom_height/to_height),call/pallet,signer/signers,signed,success,include=argsandwith_total(counted to 100,000), never withnetuid(400INVALID_FILTER).
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.
Extrinsics in order by (height, index). Can be shorter than limit, even empty, with a non-null meta.page.next_cursor (meta.page.scan_limited).
- 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 feetao_equivalent_rao. The whole fee in TAO terms isamount_rao + tip_rao(tao) ortao_equivalent_rao + tip_rao(alpha). Null when none was charged: inherents, unsigned extrinsics andEthereum.transact(which pays EVM gas only, ingas_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 bysigner.- Format: SS58 address
- assetstring
What the fee was paid in:
tao, oralphaofnetuid(TransactionFeePaidWithAlpha: the fee extension sold the payer's alpha to pay it). It namesamount_rao's denomination. New values may be added; show an unknown value as is (or generically).- netuidinteger · unit id · can be null
When
assetisalpha: the subnet whose alpha paid. Null fortao.- amount_raostring · unit rao (÷1e9)
The fee in the paid asset's base unit (decimal string), the tip excluded: rao when
assetistao, alpha rao ofnetuidwhenassetisalpha(a mixed-denomination field:x-unitkeepsraoas the 1e9 scale andassetnames the denomination; never add an alpha amount to TAO). In TAO: TransactionFeePaid.actualFee - tip; in alpha: TransactionFeePaidWithAlpha.alphaFee. The whole fee in TAO terms isamount_rao + tip_raofortao,tao_equivalent_rao + tip_raoforalpha.- 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
assetisalpha: the TAO the alpha sale realized to pay the fee, rao (TransactionFeePaidWithAlpha.taoAmount); always present on an alpha fee. Null fortao. The fee's cost in TAO terms istao_equivalent_rao + tip_rao, but no TAO left the payer for it: never add it toamount_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_raofortao; foralphaitstao_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_raoin 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_raoamounts, 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 onEthereum.transactandEVM.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 thetx_feepayer (a signedEVM.callcharges its signer the Substrate fee and the mapped account the gas). Group fees bypayer.- Format: SS58 address
- fromstring
The H160 sender, 0x + 40 lower-case hex, as the EVM transaction or call names it (not rendered;
payeris 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, everySudocall,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 extrinsichash). 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_checkscall row, its code; on an extrinsic row, the code of a set_code call anywhere in its call tree (e.g. underSudo.sudo). The code itself is never served (its args are withheld above 16 KiB, seeargs_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}/codelinks, matched bycode_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_attemptthat 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_attemptwhose 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; anas_multi_threshold_1too),cancelled(MultisigCancelled) orfailed_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).
- argsobject · can be null
Only with
include=args(absent otherwise). 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. Null also whenargs_truncatedis true.- args_truncatedboolean · optional
Only with
include=args(absent otherwise). True when the args are larger than 16 KiB (16384 bytes) of JSON:argsis then null andargs_bytesgives their size. Only runtime upgrades (System.set_codeand 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
Only with
include=args(absent otherwise). Whenargs_truncatedis 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).
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
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_ADDRESS
- INVALID_ARGS_FILTER
- INVALID_BOOLEAN
- INVALID_CALL
- INVALID_CURSOR
- INVALID_FILTER
- INVALID_HASH
- INVALID_HEIGHT
- INVALID_INCLUDE
- INVALID_LIMIT
- INVALID_NETUID
- INVALID_ORDER
- INVALID_PALLET
- INVALID_RANGE
- INVALID_TIME
- NOT_READY
- PAYMENT_REQUIRED
- PLAN_REQUIRED
- RATE_LIMITED
- REPEATED_PARAMETER
- SCOPE_REQUIRED
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- UNAUTHORIZED
- UNKNOWN_CALL
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.165.0.