User Tools

Site Tools


poolinfo:payoutaddress

How to change your pool payout address

There are some reasons for which you might want to change the payout address for your pool rewards. Maybe you feel that the keys tied to your plots are compromised after exposing your key to third-party software like forks or plotting managers and you want to farm directly to a cold wallet. Or on the contrary, you want to send your farmer rewards directly to a third-party hot wallet on your phone. Whatever the reason is you want to change your payout address, note that it is vital that you check whether you have access to the address you input!

In this guide you learn how to change payout address by either:

  • using the GUI
  • changing the config.yaml
  • using the farmer RPC API

After you change your payout address, make sure to check if the change is accepted by the pool in your SpaceFarmer Dashboard.

Using the GUI

In the GUI, navigate to the Pools tab and navigate to the PlotNFT that you want to change the pay-out address for. Click the three vertical dots and select “Edit Payout Instructions”. You will be presented with a field where you can enter the payout address you want your pool rewards to be sent to. Make sure that you have access to the address that you enter in this field!

Changing the config.yaml

You can also change the payout instruction through the config.yaml. Do note that you need to convert your receive address to a puzzle hash. The steps below show you how to do this:

  1. Convert your preferred receive address to a puzzle hash, for example with this tool: https://www.chiaexplorer.com/tools/address-puzzlehash-converter
  2. Navigate to the config.yaml file in your .chia folder.
    • For Windows: C:\Users\<username>\.chia\mainnet\config
    • For Linux: ~/.chia/mainnet/log/config
  3. Open the config.yaml and navigate to the pool: part (e.g. by using the search function). Here you will find a list of all your PlotNFTs.
  4. Find the PlotNFT that you want to change the payout instruction for. You can identify your plotNFT by the launcher_id:; make sure to double check!
  5. The third line under launcher_id: is payout_instructions:. Take the puzzle hash output from step 1 MINUS the 0x part and change the entry. Make sure the entry should look something like payout_instructions: 61751cc01a73d5e64a07d6e37b451eed9f157f04da53e3c7d06f355928ba2113. You can check if you copied correctly, by converting your number back to a receive address in the tool from step 1.
  6. save the config.yaml

Using the farmer RPC API

You can also change your payout address using the RPC API. This way, you won't accidentally mess up your config. Here's how to do this:

  1. Obtain the launcher ID for the plot NFT you want to change the payout instructions for. With the CLI: chia plotnft show
  2. Convert your preferred receive address to a puzzle hash, for example with this tool: https://www.chiaexplorer.com/tools/address-puzzlehash-converter
  3. Paste the following on the machine that runs the farmer(s). Use the puzzle hash output from the previous step MINUS the 0x part:
    curl --insecure --no-progress-meter \
      --cert ~/.chia/mainnet/config/ssl/farmer/private_farmer.crt \
      --key ~/.chia/mainnet/config/ssl/farmer/private_farmer.key \
      -H "Content-Type: application/json" \
      -X POST https://localhost:8559/set_payout_instructions \
      -d '{"launcher_id": "<YOUR_LAUNCHER_ID>", "payout_instructions": "<YOUR_PUZZLE_HASH>"}'
  4. Verify that the plot NFT's payout address changed as you wanted by checking chia plotnft show.
poolinfo/payoutaddress.txt · Last modified: 2021/11/04 12:22 by spacefarmer01