Subtensor Reference

Complete technical documentation for runtime v490

Pallets

Modules that organize blockchain functionality. Each pallet groups related calls, events, and storage.

Examples: SubtensorModule handles all staking and subnet operations

Mechanisms

Runtime algorithms and processes that power Subtensor. See how calls, events, and storage connect together.

Examples: Yuma Consensus, Block Emission, Subnet Emission Shares

Calls

Actions you can submit to the blockchain. These are your main way to interact with Subtensor.

Use these to stake, register, set weights, and interact with subnets.

Examples: add_stake, register, set_weights

Events

Notifications emitted when something happens on-chain. Subscribe to these to track changes.

Build dashboards, trigger alerts, or audit on-chain activity in real time.

Examples: StakeAdded, NeuronRegistered

Storage

On-chain data you can query. This is the current state of the blockchain.

Build UIs showing balances, stakes, subnet status, and validator info.

Examples: TotalStake, Neurons, Subnets

Constants

Fixed values defined in the runtime. These don't change without an upgrade.

Check limits and defaults before submitting calls.

Examples: MaxAllowedValidators, DefaultTake

Errors

Error codes returned when a call fails. Use these to understand what went wrong.

Debug failed transactions and add proper error handling to your app.

Examples: NotEnoughBalanceToStake, SubNetworkDoesNotExist

Versions

Runtime version history showing how Subtensor evolved. Track changes across upgrades.

Examples: v290 dTAO, v360 CRV3, v377 current

Runtime Errors

Error types returned by failed extrinsics. Covers all non-pallet errors like BadOrigin and token failures.

Examples: BadOrigin, Token(FundsUnavailable), Arithmetic(Overflow)

Extrinsic Format

How signed extrinsics are structured: the 12 signed extensions that define payload fields, and the pallet index mapping.

Examples: CheckNonce, CheckMortality, ChargeTransactionPayment

Protocol Accounts

The chain-owned addresses derived from PalletId constants: subnet sovereign accounts, the burn account, crowdloan funds, and the basket escrow.

Identify an address from a block explorer, or derive the reserve account for any subnet.

Examples: Subnet Sovereign Account, Burn Account, Beta Basket Escrow

Runtime APIs

Functions exposed by the runtime for direct querying. Every method you can call without submitting an extrinsic.

Query chain state, validate transactions, and access custom Subtensor data like delegate info and subnet details.

Examples: Core.version, NeuronInfoRuntimeApi.get_neurons, SubnetInfoRuntimeApi.get_subnets_info

JSON-RPC Methods

The low-level transport API every Subtensor node exposes over HTTP and WebSocket. SDKs call these under the hood.

Call methods directly for lightweight integrations, debugging, or languages without an SDK.

Examples: state_getStorage, chain_getBlock, system_health, author_submitExtrinsic

EVM Precompiles

Contracts at fixed addresses that let Solidity code call into pallets: staking, subnet registration, metagraph reads, crowdloans and proxies.

Build EVM contracts against Subtensor without leaving Solidity.

Examples: IStaking (0x…0801), ISubnet (0x…0803), IMetagraph (0x…0802)

SCALE Types

All 868 SCALE type definitions used in runtime metadata for encoding and decoding chain data.

Examples: AccountId32, DispatchError, Compact<u64>

Most Active On-Chain

Through block 9,385,000

Browse by Pallet

Governance & Admin

Chain governance, admin controls, and emergency functions