Queried by: validatorsstakersdevelopers
The Big Picture
Only accounts with sufficient stake can set weights. This threshold ensures consensus participants have meaningful stake at risk.
Use Cases
- Check if stake qualifies for weight setting
- Plan staking strategy
- Build validation tools
From Chain Metadata
ITEM( weights_min_stake )
Purpose & Usage
Purpose
Prevent low-stake accounts from influencing consensus.
Common Query Patterns
- Single value query
Stored Value
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 StakeThreshold storage (no keys - plain value)
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("StakeThreshold")]();
console.log("StakeThreshold:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v216
- Current Version
- v393