bittensor.commands.transfer#

Attributes#

Classes#

TransferCommand

Executes the transfer command to transfer TAO tokens from one account to another on the Bittensor network.

Module Contents#

bittensor.commands.transfer.console#
class bittensor.commands.transfer.TransferCommand[source]#

Executes the transfer command to transfer TAO tokens from one account to another on the Bittensor network.

This command is used for transactions between different accounts, enabling users to send tokens to other participants on the network.

Usage:

The command requires specifying the destination address (public key) and the amount of TAO to be transferred. It checks for sufficient balance and prompts for confirmation before proceeding with the transaction.

Optional arguments:
  • --dest (str): The destination address for the transfer. This can be in the form of an SS58 or ed2519 public key.

  • --amount (float): The amount of TAO tokens to transfer.

The command displays the user’s current balance before prompting for the amount to transfer, ensuring transparency and accuracy in the transaction.

Example usage:

btcli wallet transfer --dest 5Dp8... --amount 100

Note

This command is crucial for executing token transfers within the Bittensor network. Users should verify the destination address and amount before confirming the transaction to avoid errors or loss of funds.

static run(cli)[source]#

Transfer token of amount to destination.

Parameters:

cli (bittensor.cli)

static _run(cli, subtensor)[source]#

Transfer token of amount to destination.

Parameters:
static check_config(config)[source]#
Parameters:

config (bittensor.config)

static add_args(parser)[source]#
Parameters:

parser (argparse.ArgumentParser)