BondsResetOn

Storage Map v273 → current

Whether bonds reset is enabled for a subnet .

Explore chain
Queried by: validatorssubnet ownersdevelopers

The Big Picture

When enabled, bonds are periodically reset allowing miners to rebuild trust. This creates more dynamic ranking but less historical continuity. Different subnets may choose different bond reset policies.

Use Cases

  • Check if bonds reset is active
  • Plan validation strategy around resets
  • Monitor subnet bond policies

From Chain Metadata

MAP ( netuid ) --> bonds_reset

Purpose & Usage

Purpose

Control if bonds are reset periodically.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (bool)

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

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

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

Runtime Info

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