bittensor.core.extrinsics.asyncex.take

bittensor.core.extrinsics.asyncex.take#

Functions#

set_take_extrinsic(subtensor, wallet, hotkey_ss58, ...)

Sets the delegate 'take' percentage for a neuron identified by its hotkey.

Module Contents#

async bittensor.core.extrinsics.asyncex.take.set_take_extrinsic(subtensor, wallet, hotkey_ss58, take, action, period=None, raise_error=False, wait_for_inclusion=True, wait_for_finalization=True)#

Sets the delegate ‘take’ percentage for a neuron identified by its hotkey.

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

  • wallet (bittensor_wallet.bittensor_wallet.Wallet) – The wallet to sign the extrinsic.

  • hotkey_ss58 (str) – SS58 address of the hotkey to set take for.

  • take (int) – The percentage of rewards that the delegate claims from nominators.

  • action (Literal['increase_take', 'decrease_take']) – The call function to use to set the take. Can be either “increase_take” or “decrease_take”.

  • 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