bittensor.core.extrinsics.asyncex.children#

Functions#

root_set_pending_childkey_cooldown_extrinsic(...[, ...])

Allows a coldkey to set children-keys.

set_children_extrinsic(subtensor, wallet, hotkey, ...)

Allows a coldkey to set children-keys.

Module Contents#

async bittensor.core.extrinsics.asyncex.children.root_set_pending_childkey_cooldown_extrinsic(subtensor, wallet, cooldown, wait_for_inclusion=True, wait_for_finalization=False, period=None)#

Allows a coldkey to set children-keys.

Parameters:
Return type:

tuple[bool, str]

async bittensor.core.extrinsics.asyncex.children.set_children_extrinsic(subtensor, wallet, hotkey, netuid, children, wait_for_inclusion=True, wait_for_finalization=False, raise_error=False, period=None)#

Allows a coldkey to set children-keys.

Parameters:
  • subtensor (bittensor.core.async_subtensor.AsyncSubtensor) – bittensor subtensor.

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

  • hotkey (str) – The SS58 address of the neuron’s hotkey.

  • netuid (int) – The netuid value.

  • children (list[tuple[float, str]]) – A list of children with their proportions.

  • wait_for_inclusion (bool) – Waits for the transaction to be included in a block.

  • wait_for_finalization (bool) – Waits for the transaction to be finalized on the blockchain.

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

  • 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.

Returns:

A tuple where the first element is a boolean indicating success or failure of the operation,

and the second element is a message providing additional information.

Return type:

tuple[bool, str]

Raises: