bittensor.commands.list#

Module Contents#

Classes#

ListCommand

Executes the 'list' command which enumerates all wallets and their respective hotkeys

Attributes#

console

bittensor.commands.list.console#
class bittensor.commands.list.ListCommand#

Executes the ‘list’ command which enumerates all wallets and their respective hotkeys present in the user’s Bittensor configuration directory. The command organizes the information in a tree structure, displaying each wallet along with the SS58 addresses for the coldkey public key and any hotkeys associated with it.

Optional arguments: -p, –path: The path to the Bittensor configuration directory. Defaults to ‘~/.bittensor’.

The output is presented in a hierarchical tree format, with each wallet as a root node, and any associated hotkeys as child nodes. The SS58 address is displayed for each coldkey and hotkey that is not encrypted and exists on the device.

Usage: Upon invocation, the command scans the wallet directory and prints a list of all wallets, indicating whether the public keys are available (‘?’ denotes unavailable or encrypted keys).

Example usage: >>> btcli list –path ~/.bittensor

Note: This command is read-only and does not modify the filesystem or the network state. It is intended for use within the Bittensor CLI to provide a quick overview of the user’s wallets.

static run(cli)#

Lists wallets.

static check_config(config)#
Parameters:

config (bittensor.config) –

static add_args(parser)#
Parameters:

parser (argparse.ArgumentParser) –