AccumulatedLeaseDividends
Storage Map v290 → currentAccumulated dividends pending distribution for subnet leases.
Explore chainQueried 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
| # | Name | Type | Description |
|---|---|---|---|
| 1 | lease_id | u32 | lease_id (u32, hashed key component) |
Stored Value
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);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v290
- Current Version
- v411