CollateralLockShare
Storage Map v437 → currentMAP ( netuid ) --> CollateralLockShare (p)
Explore chainFrom Chain Metadata
MAP ( netuid ) --> CollateralLockShare (p) Share of the registration price locked as miner collateral instead of burned, normalized so `u16::MAX` = 100%. 0 (the default) disables collateral: the whole registration price is burned as before.
Purpose & Usage
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | NetUid u16 | netuid (NetUid, hashed key component) |
Stored Value
CollateralLockShare (u16)
Default Value
0 0x0000
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
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 CollateralLockShare storage
const netuid = 1;
const result = await api.query.SubtensorModule.CollateralLockShare.getValue(netuid);
console.log("CollateralLockShare:", result);On-Chain Activity
Write Frequency
●●○○○○ Minimal <10K est. writes
Fewer than 10K writes
#333 most written storage item
Write Source Calls + Hooks
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v437
- Current Version
- v490