- 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
- the script will automatically create the `node-secret.yaml` file
How to create a Stake Pool using script (Windows)
Windows users should use PowerShell and not CMD for executing these commands.
1. Download the
1.1 Open the
scripts section from jormungandr-qa____ github repository --> https://github.com/input-output-hk/jormungandr-qa/tree/master/scripts
1.2 Locate the
createStakePool.sh script on the left menu and
right click on it; Select
Save link as option from the right-click menu (as below);
1.3 Save the script in the same location where you saved the node configuration (node-config.yaml) file
1.4 Repeat steps 1.2 and 1.3 for the
GitBash in the same location where you have the script and the node-config.yaml file
- open the folder where you saved the files, right-click on the screen (on an empty space) and select
GitBash Here--> Gitbash will open;
Execute the commands from the next steps in
GitBash (from the location where the script is saved).
2.2 Check the parameters required by the script
$ bash 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
bash 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', using the `--secret node-config.yaml` parameter. The `node-config.yaml` file was automatically created in the same location as `