NotSubnetOwner

Error Re-added v133 → v141, v142 → v145, v146 → v148, v149 → v150, v151 → v212, v216 → v216, v217 → v219, v233 → v315, v320 → v326, v334 → current 7.40

You're not the owner of this subnet .

Encountered by: subnet ownersdevelopers

Why This Error Exists

Subnet owner operations (like changing hyperparameters, transfer ownership, or dissolving the subnet) are restricted to the owner coldkey. This protects subnets from unauthorized modifications. The owner is set at subnet creation and can only be changed by the current owner.

Deep Dive

SubnetOwner(netuid) returns the coldkey address that owns that subnet. Only this coldkey can sign owner-restricted calls: sudo_set_* hyperparameters, transfer_subnet_ownership, dissolve_network, etc. If you're building a tool, check ownership before attempting these operations to give users clear feedback.

Debugging Example

You call sudo_set_tempo(netuid=5, tempo=100). Error: NotSubnetOwner. Query SubnetOwner(5) - returns 5OwnerKey.... Compare to your signing coldkey - they don't match. Solution: You need to use the wallet containing 5OwnerKey... to make this call.

Prevention Tips

  • Query SubnetOwner(netuid) before attempting owner operations
  • Document which coldkey owns each of your subnets
  • After ownership transfers, update your records immediately

From Chain Metadata

Not a subnet owner.

What This Means

You're not the owner of this subnet.

Common Causes

  • Trying to modify subnet you don't own
  • Using wrong coldkey
  • Ownership was transferred

How to Fix

  • Check SubtensorModule.SubnetOwner for the actual owner
  • Use the owner's coldkey for this operation

Storage to Check

Thrown By

Version History

v133 block 1,404,224 Added
v142 block 2,543,779 Re-added
v146 block 2,848,978 Re-added
v149 block 3,014,339 Re-added
v151 block 3,157,274 Re-added
v216 block 4,510,996 Re-added
v217 block 4,590,522 Re-added
v233 block 4,920,350 Re-added
v320 block 6,523,566 Re-added
v334 block 6,811,690 Re-added Current

Runtime Info

Pallet Index
7
Error Index
40
Error Code
7.40
Runtime Version
v393