AccumulatedLeaseDividends

Storage Map v290 → current

Accumulated dividends pending distribution for subnet leases.

Explore chain
Queried by: subnet ownersstakersanalytics

The Big Picture

Subnet leases allow shared ownership of subnet slots. As the subnet earns, dividends accumulate here before being distributed to lease share holders. Shows total pending distribution for each lease.

Use Cases

  • Check pending dividends for a lease
  • Monitor dividend accumulation
  • Build lease yield tracking tools

From Chain Metadata

MAP ( lease_id ) --> accumulated_dividends | The accumulated dividends for a given lease that needs to be distributed.

Purpose & Usage

Purpose

Track dividends earned by lease contributors waiting to be distributed.

Common Query Patterns

  • Query by lease ID

Query Keys

#NameTypeDescription
1
key1
u32 key1 (u32)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

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 AccumulatedLeaseDividends storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("AccumulatedLeaseDividends")](
  key1
);

console.log("AccumulatedLeaseDividends:", result.toHuman());

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v290
Current Version
v393