Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Latest commit

 

History

History
195 lines (157 loc) · 5.41 KB

btcli.md

File metadata and controls

195 lines (157 loc) · 5.41 KB

[btcli]

The Bittensor command line interface (btcli) comes installed with the bittensor API and can be used to stake or unstake funds, run miners, check network state, and even deploy, analyze, and interface with the Bittensor network.

btcli [COMMAND]
usage: btcli <command> <command args>
bittensor cli v6.0.0
positional arguments:
  {subnets,s,subnet,root,r,roots,wallet,w,wallets,stake,st,stakes,sudo,su,sudos,legacy,l}
    subnets (s, subnet)
                        Commands for managing and viewing subnetworks.
    root (r, roots)     Commands for managing and viewing the root network.
    wallet (w, wallets)
                        Commands for managing and viewing wallets.
    stake (st, stakes)  Commands for staking and removing stake from hotkey accounts.
    sudo (su, sudos)    Commands for subnet management
    legacy (l)          Miscellaneous commands.

List wallets

Lists all wallets locally stored on your machine under path --wallet.path. Outputs addresses are ss58 encoded required as desinstations for btcli transfer Usage: btcli wallet list [OPTIONS]

btcli wallet list
Wallets
└─
    my_wallet (<ss58_address>)
       └── my_first_hotkey (<ss58_address>)

New Coldkey

Create a new wallet with encrypted coldkey EdDSA cryptographic keypair Usage: btcli wallet new_coldkey [OPTIONS]

btcli wallet new_coldkey

New Hotkey

Create a EdDSA cryptographic keypair hotkey associated with a wallet. Usage: btcli wallet new_hotkey [OPTIONS]

btcli wallet new_hotkey

Regenerate Hotkey

Regenerate a hotkey from mnemonic. Usage: btcli wallet regen_hotkey [OPTIONS]

btcli wallet regen_hotkey

Regenerate Coldkey

Regenerate a wallet encrypted coldkey file from mnemonic or seed. Usage: btcli wallet regen_coldkey [OPTIONS]

btcli wallet regen_coldkey

Regenerate Coldkeypub

Regenerate a wallet with just the public seed of your coldkey. Usage: btcli wallet regen_coldkeypub [OPTIONS]

btcli wallet regen_coldkeypub

POW registration

Begins a proof of word registration. Usage: btcli subnet register [OPTIONS]

btcli subnet register

Recycle registration

Initiates a TAO recycle registration. Usage: btcli recycle_register [OPTIONS]

btcli subnet recycle_register

Transfer Tao

Transfers TAO from a wallet coldkey to another wallet public key address. Destination addresses must be ss58 encoded. Usage: btcli wallet transfer [OPTIONS]

btcli wallet transfer

Stake Tao

Stake TAO from the coldkey balance to the hotkey staking account. Usage: btcli stake add [OPTIONS]

btcli stake add

Unstake Tao

Remove stake TAO from the hotkey staking account and add it to the coldkey. Usage: btcli stake remove [OPTIONS]

btcli stake remove

Delegate Tao

List all active delegates available for delegated TAO. Usage: btcli root list

btcli root list

List Delegates

Delegate Tao

Delegate TAO from the coldkey balance to the hotkey staking account of a delegate. Usage: btcli delegate [OPTIONS]

btcli delegate

Undelegate Tao

Remove TAO from the hotkey balance of delegate you have previously delegated to. Usage: btcli root undelegate [OPTIONS]

btcli root undelegate

My Delegates

Create a hotkey associated to a wallet. Usage: btcli wallet new_hotkey [OPTIONS]

btcli wallet new_hotkey

View proposals

List all active proposals for the Senate to vote on. Usage: btcli root proposals

btcli root proposals

Proposals

Proposal Votes

Inspect the votes for a single proposal. Usage: btcli root proposals [OPTIONS]

btcli root proposals --proposal=[PROPOSAL_HASH]

Senate Register

Elect to join the Senate with your nominated hotkey. Usage: btcli root register [OPTIONS]

btcli root register

Senate Vote

Participate in a triumvirate proposal by voting with your senate hotkey. Usage: btcli root senate_vote [OPTIONS]

btcli root senate_vote --proposal=[PROPOSAL_HASH]

Update Bittensor

Update your Bittensor installation Usage: btcli misc update [OPTIONS]

btcli misc update