bittensor.core.extrinsics.asyncex.utils

bittensor.core.extrinsics.asyncex.utils#

Functions#

sudo_call_extrinsic(subtensor, wallet, call_function, ...)

Execute a sudo call extrinsic.

Module Contents#

async bittensor.core.extrinsics.asyncex.utils.sudo_call_extrinsic(subtensor, wallet, call_function, call_params, call_module='AdminUtils', sign_with='coldkey', use_nonce=False, nonce_key='hotkey', period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=True, root_call=False)#

Execute a sudo call extrinsic.

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

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

  • call_function (str) – The call function to execute.

  • call_params (dict) – The call parameters.

  • call_module (str) – The call module.

  • sign_with (str) – The keypair to sign the extrinsic with.

  • use_nonce (bool) – Whether to use a nonce.

  • nonce_key (str) – The key to use for the nonce.

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

  • root_call (bool) – False, if the subnet owner makes a call.

Returns:

The result object of the extrinsic execution.

Return type:

ExtrinsicResponse