> TRD to TezPay Migration
Command Cheatsheet
Task | Command Example |
---|---|
Import TRD config | ./tezpay import-configuration trd ./trd.yaml |
Test configuration (no payout) | ./tezpay generate-payouts |
Manual payout | ./tezpay pay or ./tezpay pay -c <cycle> |
Start continual payouts | ./tezpay continual |
Overview
If you’re switching from TRD (Tezos Reward Distributor) to TezPay, here’s what you need to know:
- TezPay is folder-scoped. Each TezPay instance lives in its own directory and serves one baker address.
- The folder holds the binary, configuration (
config.hjson
), and reports. - TezPay has an import tool that can convert a standard
trd.yaml
into a workingconfig.hjson
.
Note:
This is just a quick start guide. For more comprehensive and detailed information about TezPay, you may want to check other guides and the command reference.
Migration Steps
Step 1: Create a TezPay Instance Directory
Choose a directory to store your TezPay instance.
Tip:
Use one folder per baker address, e.g.,/tezos/payouts/my-baker
.
This directory will contain:
tezpay
binaryconfig.hjson
- (optional)
reports/
directory with payout history
Step 2: Download TezPay Binary
Download the latest binary for your platform from the Releases.
Rename it to tezpay
and make it executable (on linux):
chmod +x ./tezpay
For Windows, the binary will be named tezpay.exe
. To make it executable, no additional steps are required on Windows.
Note:
Replacing the binary with the latest version is how you upgrade TezPay.
Step 3: Choose Configuration Method
You have two options:
Option A: Migrate from TRD
- Copy your
trd.yaml
into the instance folder. - Run:
./tezpay import-configuration trd ./trd.yaml
This creates config.hjson
based on your TRD settings.
Note:
Most standard TRD configs work out of the box. Edge cases might need adjustments.
Option B: Start Fresh
- Create a file
config.hjson
in the instance folder. - Use this starter template:
Starter Config - For advanced options, refer to:
Sample Config
Step 4: Test the Configuration
Run a dry run of the payouts:
./tezpay generate-payouts
This does not execute payouts.
It only shows what TezPay would distribute.
Step 5: Execute Payouts
Manual Payout
- Default (last completed cycle):
./tezpay pay
- Specific cycle:
./tezpay pay -c <cycle number>
Automatic (Continual) Payouts
To run payouts continuously:
./tezpay continual
Folder Location Tip:
If you run TezPay as a service, place your payout folder outside of/home
for reliable service access.
Example:/tezos/payouts/my-baker
Need Help?
Reach out anytime: