Current Value
7200Relevant for: subnet ownersdevelopers
The Big Picture
Creating subnets costs TAO (lock or burn), but that alone doesn't prevent a wealthy actor from spamming subnet creation. This constant adds a time-based rate limit - after someone creates a subnet, everyone must wait this many blocks before another can be created. This prevents network flooding while allowing legitimate subnet growth.
Why This Matters
If you're planning to create a subnet, check when the last one was created. You might need to wait for the rate limit to expire before your registration succeeds.
Example
With NetworkRateLimit of 100 blocks (~20 minutes), if someone created subnet 50 at block 1,000,000, no one can create subnet 51 until block 1,000,100. Your register_network call will fail if submitted too soon.
Common Questions
- Does this limit apply per account or globally?
- Globally. One person creating a subnet affects everyone's ability to create subnets for the rate limit period.
- What happens if I submit during the rate limit?
- Your transaction fails with an error. No TAO is consumed. Retry after the limit expires.
Use Cases
- Subnet creation
- Rate limiting
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 InitialNetworkRateLimit constant
const value = await api.constants.SubtensorModule.InitialNetworkRateLimit();
console.log("InitialNetworkRateLimit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;Type Information
- Type
- u64
- Byte Size
- 8 bytes
- Encoding
- fixed
- Raw Hex
- 0x201c000000000000
Runtime Info
- Pallet
- SubtensorModule
- First Version
- v133
- Latest Version
- v133
- Current Runtime
- v411