bittensor.core.extrinsics.asyncex.start_call

bittensor.core.extrinsics.asyncex.start_call#

Functions#

start_call_extrinsic(subtensor, wallet, netuid[, ...])

Submits a start_call extrinsic to the blockchain, to trigger the start call process for a subnet (used to start a

Module Contents#

async bittensor.core.extrinsics.asyncex.start_call.start_call_extrinsic(subtensor, wallet, netuid, wait_for_inclusion=True, wait_for_finalization=False, period=None)#

Submits a start_call extrinsic to the blockchain, to trigger the start call process for a subnet (used to start a new subnet’s emission mechanism).

Parameters:
  • subtensor (Subtensor) – The Subtensor client instance used for blockchain interaction.

  • wallet (Wallet) – The wallet used to sign the extrinsic (must be unlocked).

  • netuid (int) – The UID of the target subnet for which the call is being initiated.

  • wait_for_inclusion (bool, optional) – Whether to wait for the extrinsic to be included in a block. Defaults to True.

  • wait_for_finalization (bool, optional) – Whether to wait for finalization of the extrinsic. Defaults to False.

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

  • True and a success message if the extrinsic is successfully submitted or processed.

  • False and an error message if the submission fails or the wallet cannot be unlocked.

Return type:

Tuple[bool, str]