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 { 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 StakeThreshold storage (no keys - plain value)
const result = await api.query.SubtensorModule.StakeThreshold.getValue();
console.log("StakeThreshold:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v216
- Current Version
- v411