NetworkLastLockCost

Storage Plain v133 → v490 · 1 shape change

Last subnet creation lock cost .

Explore chain
Queried by: subnet ownersdevelopersanalytics

The 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

v424 v432 Breaking

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

1000000000000 0x0010a5d4e8000000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Relationships

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

Write Frequency
●●○○○○ Minimal <10K est. writes

Fewer than 10K writes

#276 most written storage item

Write Source Calls + Hooks

Modified by both user extrinsics and runtime hooks

As of block 9,385,000

Version History

v133 block 1,404,224 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • value : u64 → TaoBalance

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v133
Current Version
v490