Skip to content

Instantly share code, notes, and snippets.

@sharjeelaziz
Last active August 29, 2023 23:47
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sharjeelaziz/1beb83f571f621e4f2d9b36a404b8713 to your computer and use it in GitHub Desktop.
Save sharjeelaziz/1beb83f571f621e4f2d9b36a404b8713 to your computer and use it in GitHub Desktop.
Which Chia plot file found the proof?

How to find the Chia plot file that won the block?

  1. Search your receive address on Chia Explorer
  2. Scroll down the page to look at your farmer rewards
  3. Click on the reward for which you want to find the plot
  4. On the page that comes up, click on the Confirmed block index number
  5. Scroll down to find the proof_of_space.plot_public_key and copy the key

On your harvester/full node run the following command at the command prompt:

curl --insecure --cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt --key \
~/.chia/mainnet/config/ssl/harvester/private_harvester.key -d '{"":""}' \
-H "Content-Type: application/json" -X POST https://localhost:8560/get_plots | python3 -m json.tool

If the command succeeds, it will display information about all of your plots. You can use grep to find the file name for the winning plot. Replace the <plot-public-key> with the key that you copied from the step 5 above in the following command:

curl --insecure --cert ~/.chia/mainnet/config/ssl/harvester/private_harvester.crt \
--key ~/.chia/mainnet/config/ssl/harvester/private_harvester.key -d '{"":""}' \
-H "Content-Type: application/json" -X POST https://localhost:8560/get_plots | \
python3 -m json.tool | \
grep -A5 -B4 <your-plot-public-key>
@cjedwards
Copy link

so what happens with multiple farmers winning a block?

@N3OSTORM
Copy link

I think this needs updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment