Dividends
Storage Map v101 → v490 · 1 shape changeDividend scores for neurons on a subnet .
Explore chainThe Big Picture
Dividends are what validators earn for their validation work. While miners get incentive, validators get dividends. This score determines the validator's share of emissions, which then gets distributed to their delegators (minus take).
Why This Matters
Thinking about delegating to a validator? Dividends show their earning power. Higher dividends = more emissions = better returns for you (after take).
Example Scenario
Query Dividends(netuid=1, uid=5) returns 0.08 (8% of dividend pool). This validator captures 8% of validator emissions on subnet 1. Strong performance.
Common Questions
- How do dividends translate to delegator returns?
- Validator earns dividends, keeps their 'take' percentage, distributes rest to delegators proportionally. Your return = (dividends × (1 - take)) × (your_stake / total_validator_stake).
- Why do some validators have zero dividends?
- They may not have validator permit, may not be setting weights, or may have very low stake. Only active validators with sufficient stake earn dividends.
Use Cases
- Check validator dividend earnings
- Compare validator profitability for delegation
- Build validator ranking by dividends
- Calculate expected returns from delegation
From Chain Metadata
MAP ( netuid ) --> dividends
Purpose & Usage
Purpose
Track dividend allocation from staking.
Common Query Patterns
- Query by netuid-uid
Migration Notes
key type changed from u16 to NetUid; value type changed from Vec<u16> to Vec<PerU16>
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 | netuid | NetUid u16 | netuid (NetUid, hashed key component) |
Stored Value
dividends (Vec<PerU16>)
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.
Relationships
Modified By
Related Events
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 Dividends storage
const netuid = 1;
const result = await api.query.SubtensorModule.Dividends.getValue(netuid);
console.log("Dividends:", result);On-Chain Activity
1M to 10M writes
#121 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- key :
u16→NetUid - value :
Vec<u16>→Vec<PerU16>
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v490