Skip to content
Not sure how to find your Farmer public key and your Pool public key? Read on.
Not sure how to find your Farmer public key and your Pool public key? Read on.
By Carlos Ochoa

If you're new to Chia and Plotting as a Service, finding your keys in order to purchase plots can be difficult.

In this guide we'll show you how to find your Farmer public key and Pool public key on the most common operating systems.

Click below to jump to your OS of choice:

What are Chia keys?

Your Chia account has several strings that you may think of as your unique identifiers that are not shared with anyone else. The blockchain uses these to tell one node apart from another, among other things.

There are seven different kinds of keys associated with your account:

  • Fingerprint
  • Master public key
  • Master private key
  • Farmer public key
  • Pool public key
  • First wallet key
  • First wallet address

It is super important that you only share your Farmer public key and your Pool public key with your PaaS provider. Never share any of your private keys with anyone or you could risk losing control of your wallet and your coins.

We're writing this post at the end of April, 2021, and at the moment the only way to find your Chia keys is by using the command line interface (CLI).

If you're not familiar with the CLI, now would be a great time to look for a tutorial online and learn the basic commands, like cd, mkdir, ls, and rm. You will find cd and ls especially handy for this operation.

On Mac

If you haven't yet used the CLI for anything Chia-related on your Mac, you'll need to install the Chia Blockchain. It doesn't matter if you've already installed the GUI.

Step 1

Open your Terminal app. The first thing we need to do is make sure you have Git installed on your computer. Git comes pre-installed on most Macs, so this should be a piece of cake. Run git --version. Your terminal should return something like git version 2.24.3 (Apple Git-128).

If your terminal returns an error of some sort, that means that you do not have Git installed on your Mac. If that's the case, you can refer to this guide to install git.

Step 2

Now that we've confirmed that you have Git on your computer, you'll have to cd into the directory where you would like to install the Chia Blockchain. We prefer using Users/username (e.g. Users/johnhull) but you can install the blockchain wherever you like.

Step 3

Once you've cd'd into the directory where you want the Chia Blockchain installed, download it by running: git clone https://github.com/Chia-Network/chia-blockchain.git

Step 4

Now we need to run cd chia-blockchain to open the Chia Blockchain directory.

Step 5

At this point, the Chia Blockchain is on your computer, but we need to install it. To do so, run sh install.sh. This step will probably take a few minutes, so hang in there.

Step 6

Congratulations! You've successfully installed the Chia Blockchain on your computer. Let's activate it by running . ./activate And please make sure to add the space between the two periods.

Step 7

You should see a (venv) at the beginning of your prompt. That means you're running Chia's virtual environment.

Step 8

Next we need to initialize the Chia Blockchain. Run init and wait for the initialization process to end. It can take about a minute.

Step 9

Let's get your keys! You've made it to the end. Run chia keys show | grep 'Pool\\|Farmer' and you should see your Farmer public key and your Pool public keys listed. If you're curious and you'd like to see all of your keys, simply run chia keys show.

Make sure to copy and paste your Farmer public key and Pool public key exactly as they appear in order to share them with your PaaS provider.

To leave Chia's virtual environment run deactivate.

On Raspberry Pi

If you're on a Raspberry Pi, we're going to assume that you already have the Chia Blockchain installed via the CLI. Getting your keys will be easy peasy.

Step 1

If you're not already in it, cd into the chia-blockchain directory by running cd chia-blockchain

Step 2

Launch the Chia Blockchain by running the command . ./activate

Step 3

Reveal your Farmer public key and Pool public key by running the command chia keys show | grep 'Pool\\|Farmer'

You can also show all of your private and public keys by running chia keys show

But again, be sure to never show your private keys to anyone.

On Windows

If you're on Windows, finding your keys can be a bit tricky. More of a trial-and-error process, but don't worry, we'll get you your keys if you just follow these steps:

Step 1

Go to Start and type cmd and press enter to open the Command Prompt.

Step 2

Paste the following command in the line and press enter %APPDATA%/../Local/chia-blockchain/app-1.0.5/resources/app.asar.unpacked/daemon/chia.exe keys show

If all went well, this should now show you your private and public keys. Remember to only copy your Farmer public key and your Pool public key.

Step 3

There's a pretty good chance you got an error when you ran the first line. The most likely explanation is that you are running a different version of the Chia Blockchain.

To figure out which version of the blockchain you need type cd %APPDATA%/../Local/chia-blockchain/ followed by dir

Step 4

You will see a version number that looks like app-1.0.5 or app-1.0.6 etc. Replace the version number in the command on Step 2 and try it again.

Next Steps

If you're ready to purchase your first Chia plots from a PaaS provider, make sure to check out our comprehensive list of PaaSers on our homepage.