📓
Stake Pool Scripts by APEX Stake Pool
  • Stake pool registration
    • Directory structure
    • Wallet
    • Metadata
    • Configuration file
    • Stake pool scripts
      • Cold key
      • VRF key
      • KES key
      • Operational certificate
      • Registration certificate
      • Stake key registration
      • Stake key delegation
    • Transaction
      • Using a remote node
      • Transaction scripts
    • Retiring the stake pool
  • Hardware wallet for Pledge
    • Stake key
    • Registration certificate
    • Stake key registration
    • Stake key delegation
    • Transactions
      • Registration certificate
      • Delegation certificate
  • Running a cardano node
    • Starting a relay node
    • Starting a block producing node
Powered by GitBook
On this page
  1. Stake pool registration
  2. Stake pool scripts

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.

PreviousOperational certificateNextStake key registration

Last updated 1 year ago