bittensor.core.extrinsics.start_call

bittensor.core.extrinsics.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#

bittensor.core.extrinsics.start_call.start_call_extrinsic(subtensor, wallet, netuid, *, mev_protection=DEFAULT_MEV_PROTECTION, period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=False, wait_for_revealed_execution=True)[source]#

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 (bittensor.core.subtensor.Subtensor) – The Subtensor client instance used for blockchain interaction.

  • wallet (bittensor_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.

  • mev_protection (bool) – If True, encrypts and submits the transaction through the MEV Shield pallet to protect against front-running and MEV attacks. The transaction remains encrypted in the mempool until validators decrypt and execute it. If False, submits the transaction directly without encryption.

  • 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 extrinsic to be included in a block.

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

  • wait_for_revealed_execution (bool) – Whether to wait for the revealed execution of transaction if mev_protection used.

Returns:

The result object of the extrinsic execution.

Return type:

ExtrinsicResponse