bittensor.core.extrinsics.params.transfer#

Classes#

Functions#

get_transfer_fn_params(amount, destination_ss58, ...)

Helper function to get the transfer call function and call params, depending on the value and keep_alive flag

Module Contents#

class bittensor.core.extrinsics.params.transfer.TransferParams#
classmethod transfer_all(destination, amount=None, keep_alive=True)#

Returns the parameters for the transfer_all.

Parameters:
Return type:

dict

classmethod transfer_allow_death(destination, amount=None, keep_alive=True)#

Returns the parameters for the transfer_allow_death.

Parameters:
Return type:

dict

classmethod transfer_keep_alive(destination, amount=None, keep_alive=True)#

Returns the parameters for the transfer_keep_alive.

Parameters:
Return type:

dict

bittensor.core.extrinsics.params.transfer.get_transfer_fn_params(amount, destination_ss58, keep_alive)#

Helper function to get the transfer call function and call params, depending on the value and keep_alive flag provided.

Parameters:
  • amount (Optional[bittensor.utils.balance.Balance]) – the amount of Tao to transfer. None if transferring all.

  • destination_ss58 (str) – the destination SS58 of the transfer

  • keep_alive (bool) – whether to enforce a retention of the existential deposit in the account after transfer.

Returns:

tuple[call function, call params]

Return type:

tuple[str, dict[str, Union[str, int, bool]]]