NetworkAdded
Event v101 → current #0Emitted when a new subnet is created on Bittensor.
View events on chainThe Big Picture
Subnets are the core of Bittensor - each one is a specialized AI network with its own incentive mechanism. Creating a subnet lets you build a decentralized AI application where miners compete to provide value and validators rank their work. This event marks the birth of a new subnet.
Why This Matters
Launching a subnet is a significant commitment - you're creating a new AI marketplace. This event confirms your subnet is live and ready for miners and validators to join. As subnet owner, you'll earn a portion of all emissions on your subnet.
Example Scenario
You've built an image generation validation mechanism. You call register_network, locking 1000 TAO as collateral. NetworkAdded fires with netuid 47 - your subnet is live. Now you can configure hyperparameters and invite miners to join.
Common Questions
- How much does it cost to create a subnet?
- The cost varies based on demand - check NetworkMinLockCost. It's locked, not burned, so you get it back if you dissolve the subnet (after immunity period).
- What happens after my subnet is created?
- Configure hyperparameters (tempo, weights limit, etc.), set up your validation mechanism, then promote your subnet to attract miners and validators.
Use Cases
- Confirm your subnet creation succeeded
- Discover new subnets to participate in
- Track subnet ecosystem growth
- Build subnet directory/explorer
How to Use This Event
- → Subscribe to track new subnet launches
- → Index to build subnet discovery tools
- → Alert when competitors launch subnets
Triggers
Preconditions
- Network registration fee paid (locked TAO)
- Total subnet count below maximum
- Valid network parameters provided
May fail with
Effects
Storage Modified
Postconditions
- New subnet exists with assigned netuid
- Subnet owner set to creator
- Subnet parameters initialized to defaults
Side Effects
- TAO locked as collateral (not burned)
- TotalNetworks counter increased
Event Data
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 NetworkAdded events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("SubtensorModule") &&
event.method === "NetworkAdded"
)
.forEach(({ event }) => {
console.log("NetworkAdded:", event.data.toHuman());
});
});Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 0
- First Version
- v101
- Current Version
- v393