bittensor.core.extrinsics.params.transfer#
Classes#
Functions#
|
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:
destination (str)
amount (Optional[bittensor.utils.balance.Balance])
keep_alive (bool)
- Return type:
- classmethod transfer_allow_death(destination, amount=None, keep_alive=True)#
Returns the parameters for the transfer_allow_death.
- Parameters:
destination (str)
amount (Optional[bittensor.utils.balance.Balance])
keep_alive (bool)
- Return type:
- classmethod transfer_keep_alive(destination, amount=None, keep_alive=True)#
Returns the parameters for the transfer_keep_alive.
- Parameters:
destination (str)
amount (Optional[bittensor.utils.balance.Balance])
keep_alive (bool)
- Return type:
- 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: