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
Stored Value
Relationships
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Query TotalIssuance storage (no keys - plain value)
const result = await api.query
[stringCamelCase("Balances")]
[stringCamelCase("TotalIssuance")]();
console.log("TotalIssuance:", result.toHuman());Runtime Info
- Pallet
- Balances
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v393