bittensor.commands.check_coldkey_swap#

Attributes#

Classes#

CheckColdKeySwapCommand

Executes the check_coldkey_swap command to check swap status of a coldkey in the Bittensor network.

Functions#

fetch_arbitration_stats(subtensor, wallet)

Performs a check of the current arbitration data (if any), and displays it through the bittensor console.

Module Contents#

bittensor.commands.check_coldkey_swap.console#
bittensor.commands.check_coldkey_swap.fetch_arbitration_stats(subtensor, wallet)[source]#

Performs a check of the current arbitration data (if any), and displays it through the bittensor console.

class bittensor.commands.check_coldkey_swap.CheckColdKeySwapCommand[source]#

Executes the check_coldkey_swap command to check swap status of a coldkey in the Bittensor network. Usage:

Users need to specify the wallet they want to check the swap status of.

Example usage::

btcli wallet check_coldkey_swap

Note

This command is important for users who wish check if swap requests were made against their coldkey.

static run(cli)[source]#

Runs the check coldkey swap command. :param cli: The CLI object containing configuration and command-line interface utilities. :type cli: bittensor.cli

Parameters:

cli (bittensor.cli)

static _run(cli, subtensor)[source]#

Internal method to check coldkey swap status. :param cli: The CLI object containing configuration and command-line interface utilities. :type cli: bittensor.cli :param subtensor: The subtensor object for blockchain interactions. :type subtensor: bittensor.subtensor

Parameters:
classmethod check_config(config)[source]#

Checks and prompts for necessary configuration settings. :param config: The configuration object. :type config: bittensor.config

Prompts the user for wallet name if not set in the config.

Parameters:

config (bittensor.config)

static add_args(command_parser)[source]#

Adds arguments to the command parser. :param command_parser: The command parser to add arguments to. :type command_parser: argparse.ArgumentParser

Parameters:

command_parser (argparse.ArgumentParser)