bittensor.commands.inspect#
Attributes#
Classes#
Executes the |
Functions#
|
Module Contents#
- bittensor.commands.inspect.console#
- bittensor.commands.inspect._get_coldkey_wallets_for_path(path)[source]#
- Parameters:
path (str)
- Return type:
List[bittensor.wallet]
- bittensor.commands.inspect._get_hotkey_wallets_for_wallet(wallet)[source]#
- Return type:
List[bittensor.wallet]
- class bittensor.commands.inspect.InspectCommand[source]#
Executes the
inspect
command, which compiles and displays a detailed report of a user’s wallet pairs (coldkey, hotkey) on the Bittensor network.This report includes balance and staking information for both the coldkey and hotkey associated with the wallet.
- Optional arguments:
all
: If set toTrue
, the command will inspect all wallets located within the specified path. If set toFalse
, the command will inspect only the wallet specified by the user.
The command gathers data on:
Coldkey balance and delegated stakes.
Hotkey stake and emissions per neuron on the network.
Delegate names and details fetched from the network.
The resulting table includes columns for:
Coldkey: The coldkey associated with the user’s wallet.
Balance: The balance of the coldkey.
Delegate: The name of the delegate to which the coldkey has staked funds.
Stake: The amount of stake held by both the coldkey and hotkey.
Emission: The emission or rewards earned from staking.
Netuid: The network unique identifier of the subnet where the hotkey is active.
Hotkey: The hotkey associated with the neuron on the network.
- Usage:
This command can be used to inspect a single wallet or all wallets located within a specified path. It is useful for a comprehensive overview of a user’s participation and performance in the Bittensor network.
Example usage:
btcli wallet inspect btcli wallet inspect --all
Note
The
inspect
command is for displaying information only and does not perform any transactions or state changes on the Bittensor network. It is intended to be used as part of the Bittensor CLI and not as a standalone function within user code.- static run(cli)[source]#
Inspect a cold, hot pair.
- Parameters:
cli (bittensor.cli)
- static _run(cli, subtensor)[source]#
- Parameters:
cli (bittensor.cli)
subtensor (bittensor.subtensor)
- static check_config(config)[source]#
- Parameters:
config (bittensor.config)
- static add_args(parser)[source]#
- Parameters:
parser (argparse.ArgumentParser)