Managing Payouts

Prerequisites

For this tutorial, you’ll need to have already followed:


Installation

TezPeak supports using TezBake and TezPay simultaneously or by themselves. To run them at the same time, combine both configurations in the same file as shown here: https://github.com/tez-capital/tezpeak

Download and install TezPeak via TezBake

tezbake setup --peak

You don’t need to install the TezBake node or baker services to use TezPay.

Setup TezPeak configuration

cd /bake-buddy/peak/ && touch config.hjson

Configuration Examples

Minimal TezPay configuration

{
    listen: 0.0.0.0:8733
    app_root: /bake-buddy
    modules: {
        tezpay: {
            payout_wallet: tz1X7U9XxVz6NDxL4DSZhijME61PW45bYUJE
        }
    }
}

Full TezPay configuration

{
    # Id to show in the header
    id: ""
    # Address to listen on
    listen: 127.0.0.1:8733
    app_root: /bake-buddy
    modules: {
        tezpay: {
            # can be null to disable tezpay package monitoring
            applications: {
                # path to tezpay ami package
                # ⚠️ IMPORTANT: Use "pay" NOT "tezpay" when using TezBake integration!
                tezpay: pay
            }
            payout_wallet: tz1X7U9XxVz6NDxL4DSZhijME61PW45bYUJE
            payout_wallet_preferences: {
                balance_warning_threshold: 100
                balance_error_threshold: 50
            }
            # forces all operations to be dry run
            force_dry_run: true
        }
    }
    # List of reference nodes
    nodes: {
        "Tezos Foundation": {
            address: https://rpc.tzbeta.net/
            is_rights_provider: true
            is_block_provider: false
        }
        tzkt: {
            address: https://rpc.tzkt.io/mainnet/
            is_rights_provider: false
            is_block_provider: true
            is_essential: false
        }
    }
    # The mode tezpeak should operate in
    # auto - if bound to localhost, it will operate in private mode if not, it will operate in public mode
    # public - assumes public environment, only readonly operations are allowed
    # private - assumes private environment, all operations are allowed
    mode: auto
}

Start TezPeak and connect to it

tezbake start --peak

If you’re connecting from a different computer, navigate to http://<your-baker-ip>:8733.

If you’re connecting from the same computer, use http://127.0.0.1:8733 or http://localhost:8733.

TezPeak example screenshot

TezPeak example screenshot


Any questions/comments/concerns? Please contact the Tez Capital team on Discord or Telegram