Dividends

Storage Map v101 → v490 · 1 shape change

Dividend scores for neurons on a subnet .

Explore chain
Queried by: validatorsdelegatorsstakersanalytics

The 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
Part of: Yuma Consensus

Migration Notes

v424 v432 Breaking

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

#NameTypeDescription
1
netuid
NetUid u16netuid (NetUid, hashed key component)

Stored Value

dividends (Vec<PerU16>)

Default Value

0x00 (raw SCALE bytes)

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

Relationships

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

Write Frequency
●●●●●○ High 1M–10M est. writes

1M to 10M writes

#121 most written storage item

Write Source Calls + Hooks

Modified by both user extrinsics and runtime hooks

As of block 9,385,000

Version History

v101 block 1 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • key : u16 → NetUid
  • value : Vec<u16> → Vec<PerU16>

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v101
Current Version
v490