- the local node is started and synced to the blockchain/testnet
- you already have an Account address with enough funds to pay for the transaction fees (> 12000 Lovelace)
- the above account will be used as the owner of the new Stake Pool
- download/copy the
send-certificate.shscripts in the same location as the node-config.yaml file
- execute the
createStakePool.shscript with the required parameters
How to create a Stake Pool using a script (Linux/macOS)
1. Download the
1.1 Open the
terminal in the location where you have the rest of the files (
jormungandr, `node-config.yaml, etc)
1.2 Run the below commands in order to download the
send-certificate.sh scripts into that location:
wget https://raw.githubusercontent.com/input-output-hk/shelley-testnet/master/scripts/createStakePool.sh wget https://raw.githubusercontent.com/input-output-hk/shelley-testnet/master/scripts/send-certificate.sh
1.3 Check that the scripts were downloaded into the current location by execting
ls command into the terminal
2.1 Change the script permissions in order to be able to execute it
chmod +x createStakePool.sh chmod +x send-certificate.sh
2.2 Check the parameters required by the script
./createStakePool.sh --help usage: ./createStakePool.sh <REST-LISTEN-PORT> <ACCOUNT_SK> <REST-PORT> The REST Listen Port set in node-config.yaml file (EX: 3101) <SOURCE-SK> The Secret key of the Source address
2.3 Execute the script
- In the below command, for the
--hostparameter, make sure to use the same value you used in node configuration (node-config.yaml) for the rest/listen parameter.
- Update the value of the second parameter with the Private Key of your own Account address
./createStakePool.sh 3101 ed25519e_sk1nqh6fk0dm9p3tgvqcgt9had3ajn5pcmme04qp256p3g7tahxd9q9j4wgn2n250huxc5t38u0yjd9rtalrzae9t7xcwzhcz98jf4hamsgfmydk
2.4 Check the results
If everything is fine and you did not receive any error, the last line of the script is your
Stake Pool ID. Now you can check if your stake pool id appears in the list of available stake pools by executing the below command.
./jcli rest v0 stake-pools get --host "http://127.0.0.1:3101/api"
Next, you can start the node as a 'leader candidate'.