Get a Quote   (408) 943-4100               TrueNAS Discord      VendOp_Icon_15x15px   Commercial Support Toggle between Light and Dark mode

Chia App

  3 minute read.

Last Modified 2022-08-31 16:30 EDT

SCALE includes Chia in its Official Apps catalog. Chia Blockchain is a new cryptocurrency that uses Proof of Space and Time. Instead of using expensive hardware that consumes exorbitant amounts of electricity to mine cryptos, it leverages existing empty hard disk space on your computer(s) to farm cryptos with minimal resources, such as electricity.

Install the Chia App

Click on the Chia app Install button in the Available Applications list.


Name your App and click Next. In this example, the name is chia1.


Leave Enable Custom Host Path for Chia Configuration Volume and Enable Custom Host Path for Chia Plots Volume unchecked and click Next.


Click Next in the Chia Environment Variables screen. You will add one later.


Confirm the options and click Submit.


Continue through the wizard and create the new application. After a minute or two the new Chia container will start and show “ACTIVE” status. Click the three-dot menu on the top-right and launch the Shell.


Leave the defaults for the pod (there is only one) and use the selected /bin/bash shell.


The first time Chia launches, it will automatically create a new private key set (for plotting purposes) and wallet. However, the private key set will not be preserved across container restarts. To make sure your keys and wallet persist, you need to save the Mnemonic Seed that was created and make sure it gets used at each container initialization. To do this, start by displaying the current key information by running the following shell command:

/chia-blockchain/venv/bin/chia keys show --show-mnemonic-seed


We suggest you make a backup copy of the information provided here for your reference in case you lose the keyfile. To make sure the same key is used for this container going forward, you will be saving the mnemonic-seed phrase to one of your host volumes on TrueNAS.

Copy and paste the 24 secret words of the mnemonic seed into a new shell command:

echo "my unique 24 secret words here" > /plots/keyfile


Now exit the shell and go back to the Installed Apps page. Click Edit on your Chia container.

Scroll down until you find the Container Environment Variables section and add a new variable as shown below:

  • Environment Variable Name: keys
  • Environment Variable Value: /plots/keyfile


If you entered the command correctly, you should see some output that looks like the screenshot.

Save the change, and the chia container should restart automatically. To confirm your changes have persisted you can log into the containers shell again and run the same /chia-blockchain/venv/bin/chia keys show --show-mnemonic-seed command to show your keys. If the keys are identical to what you previously recorded, then you are done! This Chia container will persist across reboots, upgrades, and re-deployments.

At this point, you are ready to begin farming Chia. This is a CLI process and beyond the scope of this quick how-to, but we recommend you start by reading up on their CLI reference materials, Quick Start guide and other documentation.