Registration certificate

Create the following script (pool-registration.sh) and execute it to create the stake pool registration certificate:

#!/bin/bash


source ./env

cardano-cli stake-pool registration-certificate \
--cold-verification-key-file ${NODE_HOME}/pool-keys/cold.vkey \
--vrf-verification-key-file ${NODE_HOME}/pool-keys/vrf.vkey \
--pool-pledge ${PLEDGE} \
--pool-cost ${COST} \
--pool-margin ${MARGIN} \
--pool-reward-account-verification-key-file ${NODE_HOME}/keys/stake.vkey \
--pool-owner-stake-verification-key-file ${NODE_HOME}/keys/stake.vkey \
${NET} \
--single-host-pool-relay ${RELAY1_HOST} \
--pool-relay-port ${RELAY1_PORT} \
--single-host-pool-relay ${RELAY2_HOST} \
--pool-relay-port ${RELAY2_PORT} \
--metadata-url ${METADATA_URL} \
--metadata-hash ${METADATA_HASH} \
--out-file ${NODE_HOME}/pool-certificates/pool-registration.cert

If you are using IP Addresses instead of hostnames for the registered relays, replace --single-host-pool-relay with --pool-relay-ipv4 in the script.

You can register as many relays as you want (one or more). You just have to repeat the --single-host-pool-relay and --pool-relay-port parameters for each of them.

The pledge wallet (--pool-owner-stake-verification-key-file) and the rewards wallet (--pool-reward-account-verification-key-file) are the same one in this case. But it is possible to create and set different wallets for them. And it is also possible to register multiple owner wallets (for the pledge), but only one rewards wallet can be registered. If the rewards wallet is different than the owner wallet(s), it must be registered to the blockchain. It can be delegated, but this is not mandatory.

Last updated