SubnetIdentitySet
Event Re-added v195 → v212, v216 → v247, v252 → v265, v273 → v277, v290 → v315, v320 → v326, v334 → v367, v372 → v377, v385 → current #76Emitted when a subnet 's identity metadata is set or updated.
View events on chainThe Big Picture
Subnets are just numbers (netuid) by default. Identity metadata lets you give your subnet a name, description, website, and other info that makes it discoverable and recognizable. Miners and validators can see what your subnet does before joining. Essential for attracting participants to your subnet.
Why This Matters
Nobody knows what 'subnet 47' does. But 'ImageGen - Decentralized Image Generation' immediately tells the story. Identity metadata makes your subnet findable and attractive to potential miners and validators.
Example Scenario
You launch a new text-to-SQL subnet. You call set_subnet_identity with name 'Text2SQL', description 'Convert natural language to SQL queries', and your GitHub link. SubnetIdentitySet fires. Now taostats and other explorers show your subnet's purpose.
Common Questions
- Is identity required?
- No, but strongly recommended. Subnets without identity are just numbers, making it hard for anyone to know what they do or decide to participate.
- What can I include in the identity?
- Name, description, website URL, and other metadata fields. Check the identity type definition for all available fields.
Use Cases
- Brand your subnet with a recognizable name
- Provide description and links for discoverability
- Track when subnets update their branding
- Build subnet directories with identity info
How to Use This Event
- → Monitor identity changes for subnet discovery
- → Build subnet browsers with name/description display
- → Track when subnets rebrand or update descriptions
From Chain Metadata
The identity of a subnet has been set
Triggers
Emitted by
Preconditions
- Caller is subnet owner
- Valid identity data provided
Effects
Storage Modified
Postconditions
- SubnetIdentities storage updated
Side Effects
- Subnet displays new name/description in UIs
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | arg0 | u16 | Event field #0 (u16) |
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 SubnetIdentitySet events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("SubtensorModule") &&
event.method === "SubnetIdentitySet"
)
.forEach(({ event }) => {
console.log("SubnetIdentitySet:", event.data.toHuman());
});
});Version History
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 76
- First Version
- v195
- Current Version
- v393