RootProp

Storage Map v365 → v411

Root network proportion for emission distribution.

Explore chain
Queried by: validatorsanalyticsdevelopers

The Big Picture

A portion of all emissions flows to the root network. This proportion determines how much goes to root vs subnets.

Use Cases

  • Understand emission distribution
  • Calculate root network rewards
  • Build emission calculators

From Chain Metadata

MAP ( netuid ) --> root_prop | The subnet root proportion.

Purpose & Usage

Purpose

Control share of emissions going to root network.

Common Query Patterns

  • Single value query

Query Keys

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

Stored Value

root_prop (FixedU128)

Decoding the value

FixedU128 (Q64.64 fixed-point)

FixedU128 encodes as Q64.64: raw bits divided by 2^64 gives the rational. Magnitude > 0 means non-zero.

const fraction = Number(value as bigint) / 2 ** 64;

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

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

Version History

v365 block 7,135,419 Added
v386–v390 · runtime versions skipped on chain (never deployed)
v391 block 7,782,857 Internal re-bind
v394–v400 · runtime versions skipped on chain (never deployed)
v401 block 8,036,576 Internal re-bind Current

Runtime Info

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