Welcome to TechJustice, your go-to resource for all things technology-related. In this article, we will explore the Chia Network CLI (Command Line Interface) and its functionalities like plot creation, check, delete, and others. Whether you’re a seasoned developer or just getting started with Chia, our comprehensive guide will provide you with valuable insights and step-by-step instructions to effectively utilize the Chia Network CLI.
Some examples:
- chia -h
- chia plots -h
- chia plots check -h
- chia start -h
Locate the chia binary executable
Mac
If you installed Chia.app in your /Applications directory, you can find the chia binary at
/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia.
Do a sanity check in the Terminal.app with
/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia -h
You can use that if you augment your PATH with
PATH=/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon:$PATH
and then chia -h should work.
Windows
There is more than one chia.exe binary; the GUI is Chia.exe (two of these!) and the CLI is chia.exe. They are found in different places. Note the big C versus the little c.
The chia CLI one is the one referred to in this document, and for version 1.1.3 it can be found at
~\AppData\Local\chia-blockchain\app-1.1.3\resources\app.asar.unpacked\daemon\chia.exe
Chia basic commands
chia init – migrates files from an old version to the latest version after an update
chia start node – starts node only
chia start node -r – restarts the node
chia start farmer – starts the farmer, harvester, bode, and wallet
chia start farmer -r – restarts everything
chia plots check – checks all plot files with cli
chia show -s – show status of node
chia farm summary – Show summary of the farmer
chia wallet show – Show wallet data
chia keys generate – Generate keys
chia keys add – Add keys / seed
chia stop -d all – turn off all Chia services with cli
chia netspace – show the current size of the network
chia version – shows the current chia version
Command:
chia start {service}
Creating Chia Plots
chia create – creates a new plot according to the settings chosen in the start parameters
-k NUMBER – specifies the k-size for the plot – valid values are 32, 33, 34 or 35. A k32 plot requires about 240 GB of temp memory and ends up with about 100 GB.
-n NUMBER – the number of times a plot should be created
-b NUMBER – size of memory to be used in MB (default 4608 MB).
-f NUMBER – the farmer public key can be specified here
-p NUMBER – the public key of a pool can be specified here
-a NUMBER – here you can specify the fingerprint of the key to use, this option is useful if you have multiple private keys stored
-t PATH – specifies the path to the temp. directory
-2 PATH – specifies the path to the optional second temp. directory; this directory is used only for phase 3 and 4
-d PATH – specifies the path to the final directory where the plot will be saved
-r NUMBER – specifies the number of CPU cores to use in phase 1. 2 cores seems to be the best setting, more than 4 cores will give negative results.
-u NUMBER – specifies the number of buckets / “pots”. More pots require less ram but more accesses to the SSD/HDD. There is no advantage to use less pots, the default is 128
-e – disables bitfield plotting. This setting is not recommended.
The example below will create a k32 plot and use 4GB (note – not GiB) of memory.
chia plots create -k 32 -b 4000 -t /path/to/temporary/directory -d /path/to/final/directory
Create NTF plot (portable plots)
chia plotnft [OPTIONS] COMMAND [ARGS]
Options:
-h, –help Show this message and exit.
claim – Claim rewards from a plot NFT
create – Create a plot NFT
get_login_link – Create a login link for a pool. To get the launcher id, use plotnft show.
inspect – Get Detailed plotnft information as JSON
join – Join a plot NFT to a Pool
leave – Leave a pool and return to self-farming
show – Show plotnft information
Wallet commands
chia wallet get_address – Get a receiving address
chia wallet get_transaction – Obtain a transaction
chia wallet get_transactions – Show all transactions
chia wallet show – Show wallet data
chia wallet send – send chia to another wallet
Plot cli commands
chia plots add PATH – adds a directory as plot directory with cli
chia plots check – checks the existing plot files
chia plots create – create a new plot (see above) with cli
chia plots remove – removes a plot directory from the configuration
chia plots show – shows the currently stored paths for plots
Farm commands
chia farm challenges – displays recent challenges
chia farm summary – displays a summary of the farmer
Key commands
chia keys add – add a key by seed
chia keys delete -f NUMBER – deletes the key with the fingerprint NUMBER
chia keys delete_all – deletes all keys
chia keys generate – generates a new key
chia keys generate_and_print – generates a new key WITHOUT saving it
chia keys show – shows all saved keys
chia keys sign – signs a message with the private key
chia keys verify – verifies a signature
Pi Network (PI) Mining | Step by Step Guide
Support by Spreading Some Love
Bitcoin – bc1qafhg6wmz9ss9n34jewymaxzsca
Solana – FwrNqp2qG8GHXQGhsqFk4cBeu2GerF
Doge – DHuJvPb13oeWKj5Sro84hh95xGrg5fXxMi
Matic (Polygon) – 0x4f6aEAeF6Ef1f80449943Db7C63ca0831CCc0ad8
Chia – xch1gcctpgfg4dlpcjlnxptg22x5z5efat9nw299xzpcjqutk4z48czssf0320
Introducing Amazon’s Amazing Deals Brought to You by Us: Get the Most Value for Money Smartphone Under $100! Don’t Miss Out!
Introducing Amazon India Amazing Deals Brought to You by Us: Get the Most Value for Money Smartphone Under ₹8000! Don’t Miss Out!