Kappa

Storage Map v101 → v490 · 1 shape change

Kappa parameter for consensus.

Explore chain
Queried by: validatorssubnet ownersdevelopersanalytics

The Big Picture

Kappa is a Yuma Consensus parameter controlling how validator stake affects their influence. Higher kappa means stake matters more - large validators dominate. Lower kappa reduces stake influence, giving smaller validators more relative power.

Why This Matters

How much does stake matter in consensus? Kappa determines this. It's a fundamental parameter for understanding power dynamics on a subnet.

Example Scenario

Query Kappa(netuid=1) returns the consensus parameter value. Higher values concentrate power in high-stake validators; lower values distribute influence more evenly.

Common Questions

What's a typical kappa value?
Varies by subnet design. Check specific subnet documentation for their intended consensus dynamics.
Can subnet owners change this?
Depends on governance. Some parameters are adjustable, others fixed. Changing kappa significantly alters network dynamics.

Use Cases

  • Understand how stake affects consensus power
  • Research Yuma Consensus parameters
  • Model emission distributions
  • Design subnet incentive mechanisms
  • Debug unexpected consensus outcomes

From Chain Metadata

MAP ( netuid ) --> Kappa

Purpose & Usage

Purpose

Tune consensus mechanism - controls how stake affects weight processing.

Common Query Patterns

  • Query by netuid
  • Research consensus behavior
  • Understand stake-weight dynamics
Part of: Yuma Consensus

Migration Notes

v424 v432 Breaking

key type changed from u16 to NetUid

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

Kappa (u16)

Default Value

32767 0xff7f

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 Kappa storage
const netuid = 1;

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

On-Chain Activity

Write Frequency
●●○○○○ Minimal <10K est. writes

Fewer than 10K writes

#234 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

Runtime Info

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