NetworkLastLockCost

Storage Plain v133 → current

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

Purpose & Usage

Purpose

Track most recent subnet creation price.

Common Query Patterns

  • Single value query

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

Relationships

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 NetworkLastLockCost storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("NetworkLastLockCost")]();
console.log("NetworkLastLockCost:", result.toHuman());

Runtime Info

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