Calls, filtered
https://api.bittensor.ai/api/v2/calls- Status
- Stable
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
Calls at every depth of every extrinsic's call tree, filtered by kind or pallet, origin (the account the call was dispatched for: the proxied account inside a proxy), signer (the extrinsic's signer), status, outcome, depth (top_level) and subnet (netuid: the calls whose own args name it).
Full description
Calls at every depth of every extrinsic's call tree, filtered by kind or pallet, origin (the account the call was dispatched for: the proxied account inside a proxy), signer (the extrinsic's signer), status, outcome, depth (top_level) and subnet (netuid: the calls whose own args name it). include=args adds the named args. origin and signer together must name the same account (400 INVALID_FILTER otherwise). 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. 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_FILTER, INVALID_STATUS, INVALID_BOOLEAN, INVALID_HEIGHT, INVALID_TIME, INVALID_RANGE, INVALID_ORDER, INVALID_LIMIT, INVALID_CURSOR, INVALID_INCLUDE, INVALID_ARGS_FILTER, SCOPE_REQUIRED, 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.- originquery· string
Only calls dispatched with this account's signed origin (inside
Proxy.proxy, the proxied account), or that would have been (each row'sintended_origin: a reverted or never-dispatched batch item is found by its batch's signer; the held contract 2026-10-04): SS58, or 0x + 64 hex.- signerquery· string
Only calls of extrinsics this account signed: SS58, or 0x + 64 hex.
- statusquery· enum · one of executed, reverted, not_executed
Only calls with this status:
executed,revertedornot_executed.- successquery· enum · one of true, false
Only calls that succeeded (
true) or did not (false).trueorfalse(lower-case; anything else is a 400INVALID_BOOLEAN).- top_levelquery· enum · one of true, false
Only extrinsics' own calls (
true) or only inner calls (false).trueorfalse(lower-case; anything else is a 400INVALID_BOOLEAN).- netuidquery· integer · 0 to 65535
Only calls whose own args name this subnet (any arg typed as a netuid). A page scans at most 5,000 candidates (
meta.page.scan_limited: keep paging untilnext_cursoris null); coverage starts at the subnet index's floor (503NOT_READYwhile it is still being prepared). A scope forargs_filter. While this filter is not available yet, a request with it fails (SOURCE_NOT_READY). 400INVALID_NETUIDfor anything but 0..65535.- 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,origin,signerornetuid(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).
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.
Calls in order by (height, extrinsic index, preorder). Can be shorter than limit, even empty, with a non-null meta.page.next_cursor (meta.page.scan_limited).
- 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 insideProxy.proxy),root(e.g. insideSudo.sudo),none(unsigned) orother(any other origin:rawcarries 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
kindother: the stored origin as decoded JSON (an object). Absent otherwise.
- statusstring
executed(it ran; seesuccess),reverted(it ran but an enclosing failure rolled it back, e.g. in a failedbatch_all) ornot_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), orotherwhen the error could not be decoded (rawthen carries it).- palletstring · can be null
The pallet that raised a
moduleerror; 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 (
kindother, 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_executedcall did not run when it was not refused but kept for later:multisig= aMultisig.as_multithat 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_bysays why. Null on every other call (and on an answer read before the source served it). Onlymultisigis 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_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).
- intended_originobject · can be null
The origin the call ran with, or would have run with:
originwhen it was dispatched; for arevertedornot_executedcall, its batch's origin throughUtility.batch/batch_all/force_batchwrappers (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. insideSudo.sudo),none(unsigned) orother(any other origin:rawcarries 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
kindother: 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
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_HEIGHT
- INVALID_INCLUDE
- INVALID_LIMIT
- INVALID_NETUID
- INVALID_ORDER
- INVALID_PALLET
- INVALID_RANGE
- INVALID_STATUS
- INVALID_TIME
- 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.