bittensor.core.extrinsics.take#

Functions#

decrease_take_extrinsic(subtensor, wallet, ...[, ...])

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

increase_take_extrinsic(subtensor, wallet, ...[, ...])

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

Module Contents#

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

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

Parameters:
  • subtensor (Subtensor) – Blockchain connection.

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

  • wait_for_inclusion (bool, optional) – Wait for inclusion before returning. Defaults to True.

  • wait_for_finalization (bool, optional) – Wait for finalization before returning. Defaults to True.

  • raise_error (bool, optional) – Raise error on failure. 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:

Success flag and status message.

Return type:

tuple[bool, str]

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

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

Parameters:
  • subtensor (Subtensor) – Blockchain connection.

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

  • wait_for_inclusion (bool, optional) – Wait for inclusion before returning. Defaults to True.

  • wait_for_finalization (bool, optional) – Wait for finalization before returning. Defaults to True.

  • raise_error (bool, optional) – Raise error on failure. 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:

Success flag and status message.

Return type:

tuple[bool, str]