Register & Stake

Register a subnet node on-chain with your minimum required stake or more.

This is done before entering a subnet so others can prove your stake and let you in. Subnet nodes in the registration class will not be included in consensus until activated.

After registration, the subnet node will have 16 epochs to activate otherwise after 16 epochs the node will be removed on the first successfully attested epoch.

python -m subnet.cli.hypertensor.subnet_node.register --subnet_id [int] --peer_id [str] --bootstrap_peer_id [str] --stake_to_be_added [float]

Parameters:

--subnet_id: The ID of the subnet. This can be checked by querying the model path through the SubnetPaths storage element.

--hotkey: (Suggested but optional) The key used to perform frequent subnet node operations like validating and attesting.

--peer_id: The Peer ID generated in Generate Keypair.

--bootstrap_peer_id: (Optional) The bootstrap Peer ID generated in Generate Keypair.

  • A bootstrap peer ID isn't required but Hypertensor allows setting the variable once. Once set, it cannot be updated.

  • Once a bootstrap node is registered on-chain, this cannot be updated.

    • If a subnet node doesn't register with a bootstrap node, it can set its bootstrap node using the register_subnet_node_a_parameterfunction on the Hypertensor blockchain.

--delegate_reward_rate: (Optional) The subnet node emissions reward rate to allocate to delegators.

--stake_to_be_added: The minimum staked is 1000.00.

--local: (Optional) Argument for local testing to use the LOCAL_RPC environment variables.

--phrase: (Optional) The coldkey phrase. The latest command will be removed from your CLI's history if used.

--b: (Optional) Any non-unique variable. The feature is for subnet developers to utilize.

--c: (Optional) Any non-unique variable. The feature is for subnet developers to utilize.

Notes

  • If the hotkey and phrase arguments are not passed, the key in the environmental variables (.env file) will be used for both the hotkey and coldkey.

This will:

  • Register your subnet node on-chain and claim a subnet node slot on the Hypertensor blockchain.

  • Stake the minimum required balance.

  • Be used as your proof-of-stake on-chain when you start your subnet node server.

Last updated