TotalIssuance

Storage Plain v101 → current

Total tokens in circulation.

Explore chain

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

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

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