From Chain Metadata
The total units issued in the system.
Purpose & Usage
Purpose
Track total supply (same as SubtensorModule.TotalIssuance).
Common Query Patterns
- Single value query
Migration Notes
v424 v432 Breaking
value type changed from u64 to TaoBalance
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Stored Value
Value in RAO (÷10⁹ for TAO)
Default Value
0 0x0000000000000000
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Relationships
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query TotalIssuance storage (no keys - plain value)
const result = await api.query.Balances.TotalIssuance.getValue();
console.log("TotalIssuance:", result);On-Chain Activity
Write Frequency
●●●●●● Ultra-High >10M est. writes
More than 10M writes
#58 most written storage item
Write Source Calls + Hooks
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
v101 block 1 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
- value :
u64→TaoBalance
Runtime Info
- Pallet
- Balances
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v490