NetworkLastLockCost
Storage Plain v133 → v490 · 1 shape changeLast subnet creation lock cost .
Explore chainThe Big Picture
Subnet creation cost varies based on demand. This tracks the cost of the most recent creation. Combined with reduction interval, helps predict future costs.
Use Cases
- Check recent subnet creation cost
- Track cost trends
- Plan subnet creation budget
From Chain Metadata
ITEM( last_network_lock_cost )
Purpose & Usage
Purpose
Track most recent subnet creation price.
Common Query Patterns
- Single value query
Migration Notes
value type changed from u64 to TaoBalance
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Stored Value
last_network_lock_cost (TaoBalance)
Default Value
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Relationships
Modified By
Related Events
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 NetworkLastLockCost storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkLastLockCost.getValue();
console.log("NetworkLastLockCost:", result);On-Chain Activity
Fewer than 10K writes
#276 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- value :
u64→TaoBalance
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v133
- Current Version
- v490