NetworkRateLimitSet
Event Re-added v133 → v133, v134 → v135, v136 → v141, v142 → v148, v149 → v165, v195 → v219, v233 → v247, v252 → v265, v273 → v277, v290 → v315, v320 → v326, v334 → current #56Emitted when network rate limit is changed.
View events on chainThe Big Picture
Subnet creation is rate limited to prevent spam and ensure orderly growth. This parameter controls how many blocks must pass between subnet creations (network-wide). Lower limits allow faster ecosystem expansion; higher limits slow subnet proliferation.
Why This Matters
If you're racing to create a subnet, the rate limit affects when you can act. After someone else creates a subnet, you must wait for the limit to pass before the next creation is allowed. Understanding this helps you time your subnet launch.
Example Scenario
Subnet creation rate limit was 100 blocks. To slow ecosystem expansion, it's increased to 1000 blocks. NetworkRateLimitSet fires. Now after any subnet creation, the next creation must wait ~1000 blocks. Less frequent subnet launches, more controlled growth.
Common Questions
- Is this per-user or network-wide?
- Network-wide. If anyone creates a subnet, EVERYONE waits for the limit. It's not your personal rate limit - it's the network's rate limit.
- What if I try during the rate limit period?
- Your transaction fails. You must wait until the limit passes after the last subnet creation.
- How do I know when the rate limit resets?
- Track when the last subnet was created and add the rate limit. When current_block >= last_creation_block + rate_limit, you can create.
Use Cases
- Track subnet creation frequency limits
- Plan subnet launch timing
- Monitor network growth policies
- Build subnet opportunity tracking tools
How to Use This Event
- → Track rate limits for subnet creation timing
- → Monitor network growth governance
- → Build creation opportunity tracking tools
From Chain Metadata
the network creation rate limit is set.
Triggers
Preconditions
- Caller has admin/sudo privileges
Effects
Postconditions
- NetworkRateLimit updated
Side Effects
- Affects how often new subnets can be created
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | arg0 | u64 | Event field #0 (u64) |
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 });
// Subscribe to NetworkRateLimitSet events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("SubtensorModule") &&
event.method === "NetworkRateLimitSet"
)
.forEach(({ event }) => {
console.log("NetworkRateLimitSet:", event.data.toHuman());
});
});Version History
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 56
- First Version
- v133
- Current Version
- v393