AccumulatedLeaseDividends

Storage Map v290 → v472 · 1 shape change

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

Migration Notes

v424 v432 Breaking

value type changed from u64 to AlphaBalance

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

Query Keys

#NameTypeDescription
1
lease_id
u32 lease_id (u32, hashed key component)

Stored Value

accumulated_dividends (AlphaBalance)

Default Value

0 0x0000000000000000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

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

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

Version History

v290 block 5,947,548 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • value : u64 → AlphaBalance

Runtime Info

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