SubnetOwnerChanged
Event v411 → v422, v423 → v424, v432 → v440, v441 → current #139Emitted when subnet ownership transfers to a new coldkey because conviction shifted the lead.
View events on chainUseful for: subnet ownersanalyticsdevelopers
The Big Picture
Subnet ownership is conviction-weighted in v411 and beyond. When a different coldkey accumulates more conviction than the current owner, ownership transfers. This event is the on-chain record of that transition.
Use Cases
- Alert on subnet ownership changes
- Track subnet ownership history
- Audit conviction-driven governance changes
From Chain Metadata
Subnet ownership was reassigned by lock conviction.
Migration Notes
v424 v432 Breaking
netuid changed from u16 to NetUid
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Triggers
Preconditions
- Conviction tally placed a new coldkey ahead of the previous owner
- Lock state evaluated at the relevant boundary
Effects
Postconditions
- SubnetOwner storage updated to the new coldkey
Side Effects
- Subsequent owner-cut allocations route to the new owner
- Some owner-permissioned admin calls now belong to the new coldkey
Event Data
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);
// Subscribe to SubnetOwnerChanged events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.SubtensorModule.SubnetOwnerChanged.get(block.hash);
for (const evt of events) {
console.log("SubnetOwnerChanged:", evt.payload);
}
});Version History
v411 block 8,283,784 3 args
v423 block 8,486,593 3 args
v432 block 8,636,190 3 args
v441 block 8,765,683 3 args Current
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 139
- First Version
- v411
- Current Version
- v472