Directory / shelley-testnet /

You are browsing a mirror of a file hosted on GitHub. View original

1. Stake pool operator How-to COMPACT edition

The goal of this edition is to just present the commands that are typed on the terminal in the video series: Stake pool opeator Journey. If you want to view the whole context, please read the complete how-to guide.

2. Start Jormungandr node

curl -sLOJ

tar -xzvf jormungandr-v0.8.0-rc9+1-x86_64-unknown-linux-gnu.tar.gz

./jcli -V

curl -sLOJ

tail -n +14 ./nightly-config.yaml | cat ./templates/stakepool_config_addenda.json - > ./stakepool-config.yaml

curl -sLOJ

cat genesis-hash.txt

ls -lrt

gnome-terminal --profile=client

./jormungandr --genesis-block-hash $(cat genesis-hash.txt) --config ./stakepool-config.yaml
./jormungandr --genesis-block-hash $(cat genesis-hash.txt) --config ./stakepool-config.yaml --secret ./node_secret.yaml

2.7 Check that the node is syncing

./jcli rest v0 node stats get --host ""

3. Fund stake pool owner account in JCLI

curl -sLOJ

chmod +x

./ account | tee stakepool_owner_account.txt

export PRIVATE_KEY_SK=$(cat stakepool_owner_account.txt | grep -Po "(ed25519e_[0-9a-z]+?)$")
export PUBLIC_KEY_PK=$(cat stakepool_owner_account.txt | grep -Po "(ed25519_[0-9a-z]+?)$")
export ACCOUNT_ADDRESS=$(cat stakepool_owner_account.txt | grep -Po "(addr[0-9a-z]+?)$")


./jcli rest v0 account get $ACCOUNT_ADDRESS -h

4. Create a stake pool certificate in JCLI

curl -sLOJ
curl -sLOJ

chmod +x
chmod +x

./ --help


./ 3100 10000 1/10 1000000 $PRIVATE_KEY_SK | tee createStakePool_output.txt

export STAKEPOOL_ID=$(cat createStakePool_output.txt | grep -Po "(Stake Pool ID:    [0-9a-z]+?)$" | cut -f2 -d: |xargs)

./jcli rest v0 stake-pools get --host ""

5. Register stake pool to Cardano Foundation

export GITHUB_USERNAME='your_user_name'

git clone [email protected]:$GITHUB_USERNAME/incentivized-testnet-stakepool-registry.git

gedit ../utils/registry_template.json
envsubst < ../utils/registry_template.json > ./incentivized-testnet-stakepool-registry/registry/$PUBLIC_KEY_PK.json

cat ./incentivized-testnet-stakepool-registry/registry/$PUBLIC_KEY_PK.json

echo $PRIVATE_KEY_SK > owner.prv

./jcli key sign --secret-key owner.prv --output ./incentivized-testnet-stakepool-registry/registry/$PUBLIC_KEY_PK.sig ./incentivized-testnet-stakepool-registry/registry/$PUBLIC_KEY_PK.json

ls  ./incentivized-testnet-stakepool-registry/registry/* | sort

cd ./incentivized-testnet-stakepool-registry/registry/
git add $PUBLIC_KEY_PK.json
git add $PUBLIC_KEY_PK.sig
git commit -m "EXAMP"
git push
cd ../../

6. Delegate stake to your stake pool

curl -sLOJ
chmod +x

./ --help


./jcli rest v0 account get $ACCOUNT_ADDRESS -h

7. Monitor Delegated Stake

./jcli rest v0 stake-pool get $STAKEPOOL_ID --host ""