bittensor.core.extrinsics.root

bittensor.core.extrinsics.root#

Functions#

root_register_extrinsic(subtensor, wallet[, period, ...])

Registers the neuron to the root network.

Module Contents#

bittensor.core.extrinsics.root.root_register_extrinsic(subtensor, wallet, period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=True)[source]#

Registers the neuron to the root network.

Parameters:
  • subtensor (bittensor.core.subtensor.Subtensor) – Subtensor instance to interact with the blockchain.

  • wallet (bittensor_wallet.Wallet) – Bittensor Wallet instance.

  • period (Optional[int]) – The number of blocks during which the transaction will remain valid after it’s submitted. If the transaction is not included in a block within that number of blocks, it will expire and be rejected. You can think of it as an expiration date for the transaction.

  • raise_error (bool) – Raises a relevant exception rather than returning False if unsuccessful.

  • wait_for_inclusion (bool) – Whether to wait for the inclusion of the transaction.

  • wait_for_finalization (bool) – Whether to wait for the finalization of the transaction.

Returns:

The result object of the extrinsic execution.

Return type:

ExtrinsicResponse