InitialNetworkMinLockCost

Constant v133 → current u64

Sets barrier to entry for creating subnets.

Current Value

1,000.00 TAO (1000000000000 raw)

Conversion: ÷ 10^9 (RAO → TAO)

Relevant for: subnet ownersdevelopers

The Big Picture

Creating a subnet requires locking TAO as collateral. This constant sets the minimum - the actual cost may be higher based on demand. Unlike burn costs, locked TAO can be recovered by dissolving the subnet after the immunity period.

Why This Matters

Before creating a subnet, you need to know the minimum capital requirement. This is locked, not burned - you get it back if you dissolve the subnet properly.

Example

If InitialNetworkMinLockCost is 100 TAO, you need at least 100 TAO to create a subnet. The actual cost when you register may be higher if there's high demand for slots.

Common Questions

Is this the final cost?
It's the minimum. Check NetworkMinLockCost storage for current actual cost, which adjusts based on demand.
How do I get my lock back?
Dissolve your subnet after the immunity period. The locked TAO returns to you.

Use Cases

  • Subnet registration
  • Lock calculations

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 InitialNetworkMinLockCost constant
const value = api.consts[stringCamelCase("SubtensorModule")][stringCamelCase("InitialNetworkMinLockCost")];
console.log("InitialNetworkMinLockCost:", value.toHuman());

// Convert RAO to TAO if this is a balance value
const taoValue = value.toBigInt() / BigInt(1e9);
console.log("TAO:", taoValue.toString());

Type Information

Type
u64
Byte Size
8 bytes
Encoding
fixed
Raw Hex
0x0010a5d4e8000000

Runtime Info

Pallet
SubtensorModule
First Version
v133
Latest Version
v133
Current Runtime
v393