TokenSymbol

Storage Map v233 → v411

Token symbol for subnet alpha tokens.

Explore chain
Queried by: walletsdevelopersanalytics

The Big Picture

Each subnet has alpha tokens with a symbol. This storage provides the human-readable symbol for display purposes.

Use Cases

  • Display token symbol in UIs
  • Build token-aware interfaces
  • Create trading tools

From Chain Metadata

MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet.

Purpose & Usage

Purpose

Store human-readable symbol for each subnets token.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
netuid
u16 netuid (u16, hashed key component)

Stored Value

Vec<u8> Vec

token_symbol (Vec<u8>)

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 TokenSymbol storage
const netuid = 1;

const result = await api.query.SubtensorModule.TokenSymbol.getValue(netuid);
console.log("TokenSymbol:", result);

Version History

v233 block 4,920,350 Added
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Internal re-bind
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind Current

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v233
Current Version
v411