BondsPenalty

Storage Map v233 → current

Penalty factor applied to bonds per subnet .

Explore chain
Queried by: validatorssubnet ownersdevelopers

The Big Picture

Bonds represent accumulated trust between validators and miners. The penalty factor controls how quickly bonds degrade. Higher penalty = faster bond decay = more responsive to recent behavior.

Use Cases

  • Understand bond dynamics for a subnet
  • Compare penalty rates across subnets
  • Research consensus parameter effects

From Chain Metadata

MAP ( netuid ) --> bonds_penalty

Purpose & Usage

Purpose

Control bond degradation rate for consensus mechanics.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (u16)

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 BondsPenalty storage
const key1 = 0;

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

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

Runtime Info

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