CLI - Chia commands
chia --root-path
- Change the folder containing the chia configuration if you want to move it to a non-standard location:
chia --root-path /root/.chia/mainnet
chia configure
Modifies configuration parameters via the command line (in the file / < folder user > /. chia / mainnet / config / config.yaml)
Examples:
Change logging mode:
chia configure -log-level = INFO
Other possible log-level options:
CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET
-
Disable UPNP:
chia configure -upnp = false
By analogy - you can change other parameters, after changing the parameters, you need to restart chia
chia init
First checks if there is a configuration in the ~ / .chia folder, migrates files to the new version (if you have updated).
If there are no files, then it creates them (for example, at the first start):
chia init
-
Create configuration files with existing certificates (for example if it is a child machine - farmer):
chia init -c / path_to_ca_directory /
chia farm
Show recent attempts to find evidence
chia farm challenges
-
Show information from the "Farm" section in the interface (how many Chia grown, height of the last found block, size and number of all plots, network volume)
chia farm summary
chia keys
Adding a wallet with a mnemonic phrase:
chia keys add
-
Adding a wallet from a text file (in a text file you need write a mnemonic phrase, where each word is separated by a space):
chia keys add —f /patch_to_file.txt
-
Show all keys:
chia keys show
-
Delete wallet by number (obtained from chia keys show ):
chia keys delete -f < wallet fingerprint from chia keys show >
-
Remove all keys:
chia keys delete_all
-
Generate a new wallet (mnemonic):
chia keys generate
-
Generates a new key, displays information about it, but does not save it
chia keys generate_and_print
-
Display saved keys:
chia keys show
-
Sign message with private key
chia keys sign
-
Verify signature
chia keys verify
chia netspace
Show current net size:
chia netspace
-
Show the current size of the net, indicating from which block you want to read (by default 4608 blocks ~ 1 day). For example, let's find out in the last hour:
chia netspace -d 192
chia version
Show current client version:
chia version
chia plotnft
Get the reward from farming in your pool:
chia plotnft claim -i < wallet number from chia plotnft show >
-
Create NFT for pool:
chia plotnft create -u < Pool URL > -s pool
-
Create NFT for solo:
chia plotnft create -s local
-
Get a list of created NFTs:
chia plotnft show
-
Get detailed information on the selected NFT:
chia plotnft inspect -i < number from chia plotnft show >
-
Switch pool in selected NFT:
chia plotnft join -u < Pool URL > -i < number from chia plotnft show >
-
Switch selected NFT to solo mode:
chia plotnft leave -i < number from chia plotnft show >
-
Get a link for authorization on the pool site from the selected NFT:
chia plotnft get_login_link -i < number from chia plotnft show >
chia run_daemon
Start main chia process
chia run_daemon
chia plots
Create plots:
chia plots create < options >
Options:
-k < Number > plot type (32, 33, 34, ...)
-n < Number > - the number of created plots that will done sequentially - one after another.
-b < Number > - The size of the RAM that will be used to create plot
-f < Number > - Farmer public key (can be found in the chia keys command show)
-c < Number > - Pool contract address (can be found in the chia team keys show)
-p < Number > - Specify the pool public key for creation only old —OG plots)
-a < Number > - Fingerprint of the key used, this option is useful,if you have several wallets (you can find out with the chia keys show command)
-t < Path > - Full path to temporary folder one
-2 < Path > - Path to optional second temporary folder; this directory used only during phases 3 and 4
-d < Path > - Final directory where the plot will be copied
-r < Number > - Number of threads. It is recommended to use equal to the number of processor threads.
-u < Number > - Number of buckets More
-e - disables the construction of the bitfield. More
-x - Disable automatic addition of final directories in hervester
-
Add plot directory:
chia plots add -d / patch_to_final_dir /
-
Remove plot directory:
chia plots remove -d / patch_to_final_dir /
-
Show plot directories:
chia plots show
-
Check plots for integrity:
chia plots chia < options >
Parameters (optional):
-n < Number > - Number of challenges - the more, the longer the plots will be checked
-g < String > - Check only plots containing the specified path or file name
-l - Show a list of plots with duplicate IDs
chia show
View node sync status and information:
chia show -s
-
List of connections:
chia show -c
-
Disable node:
chia show -e
-
Add the address of the node to connect to:
chia show -a < ip: port >
-
Remove the node address by the first 8 characters of the NodeID (can be found in chia show -c)
chia show -r < ip: port >
chia start
Launch Modules:
chia start < desired values separated by a space >
List of possible values:
all | node | harvester | farmer | farmer-no-only | wallet | wallet-only | introducer | simulatorwallet | farmer-only | timelord | timelord-only | timelord-launcher-
-r - restart if already running
chia stop
Launch Modules:
chia start < desired values separated by a space >
List of possible values:
all | node | harvester | farmer | farmer-no-wallet | farmer-only | wallet | wallet-only | introducer | simulatoronly | timelord | timelord-only | timelord-launcher-
-d - stop the main process as well (it is recommended use to stop completely
-
Full stop (Recommended for restart:
chia stop all -d
chia wallet
Show wallet address
chia wallet get_address
Options:
-f < Number > - wallet fingerprint from chia keys show
-i < Number > - wallet number (default 1)
-
Get transaction information:
chia wallet get_transaction -tx < Transaction ID from chia wallet get_transactions >
Options:
-f < Number > - wallet fingerprint from chia keys show
-i < Number > - wallet number (default 1)
-
Show all transactions
chia wallet get_transactions
Options:
-f < Number > - wallet fingerprint from chia keys show
-i < Number > - wallet number (default 1)
-o < Number > - Offset to get list from the specified transaction sequence number
-
Wallet information:
chia wallet show
Options:
-f < Number > - wallet fingerprint from chia keys show
-
Send coins to address:
chia wallet send -t < Address > -a < Quantity coins >
Options:
-f < Number > - wallet fingerprint from chia keys show
-i < Number > - wallet number (default 1)
-m < Number > - commission (default 0)