Kappa

Storage Map v101 → current

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

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

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (u16)

Relationships

Modified By

Related Events

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query Kappa storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("Kappa")](
  key1
);

console.log("Kappa:", result.toHuman());

Runtime Info

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