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 { 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);

Runtime Info

Pallet
Balances
Storage Kind
Plain
First Version
v101
Current Version
v411