Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.62 KB

File metadata and controls

39 lines (28 loc) · 1.62 KB

root — Root Network Operations

The root network (SN0) is the meta-subnet that governs emission distribution across all subnets. Root validators set weights to determine which subnets receive more emissions.

Subcommands

root register

Register on the root network. Requires a hotkey with sufficient total stake.

agcli root register [--password PW] [--yes]

On-chain: SubtensorModule::root_register(origin, hotkey)

  • Errors: StakeTooLowForRoot, HotKeyAlreadyRegisteredInSubNet

root weights

Set root weights to influence subnet emission distribution.

agcli root weights --weights "1:500,2:300,3:200"

On-chain: SubtensorModule::set_root_weights(origin, netuid, hotkey, dests, weights, version_key)

  • Weights determine relative emission share per subnet
  • Events: WeightsSet(0, uid) (netuid=0 for root)
  • Errors: NotEnoughStakeToSetWeights, SettingWeightsTooFast

Source Code

agcli handler: src/cli/network_cmds.rshandle_root() at L11, subcommands: Register L19, Weights L32

Subtensor pallet:

Related Commands

  • agcli view dynamic — See current emission distribution
  • agcli subnet list — View all subnets
  • agcli explain --topic root — Root network mechanics