AccumulatedLeaseDividends
Storage Map v290 → v472 · 1 shape changeAccumulated dividends pending distribution for subnet leases.
Explore chainThe 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
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
| # | Name | Type | Description |
|---|---|---|---|
| 1 | lease_id | u32 | lease_id (u32, hashed key component) |
Stored Value
accumulated_dividends (AlphaBalance)
Default Value
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
- value :
u64→AlphaBalance
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v290
- Current Version
- v472