Re-submit an existing stake pool registration.
- Therefore this needs a bit of adjustment (including 500 ADA refundable pool deposit) executing this for first time.
- So if using this template for an initial pool registration, deduct a further 500 million lovelace when calculating pnet in the template below.
Data
cardano-cli query tip --mainnet | jq .slot | awk '{print $NF + 3600}' cat > ttl 37381153 (will be 18:54 local time) from pledge amount query ... OR whatever address is paying transaction fees cat > payment.utxo (...[big-transaction-hex-string]...#0) cat > pbal (100009632038) get (or check) protocol.json copy to host folder edit new metadata URL wget URL calculate metadata hash & substitute below
Template
Substitute all your actual pool data, including any newly calculated pool metadata hash, for all the highlighted figures in the first CLI command below.
- The other file names appear here for consistency with the Frankenwallet standard key files & locations used elsewhere in these templates & guides.
BACK UP OLD ONE FIRST (and also move in 7z file!)... RENAME low/pool.cert TO: low/pool.UTC_ISO_DATE.cert cardano-cli stake-pool registration-certificate \ --cold-verification-key-file low/cold.vkey \ --vrf-verification-key-file low/vrf.vkey \ --pool-pledge 100000000000 \ --pool-cost 340000000 \ --pool-margin 0.02 \ --pool-reward-account-verification-key-file low/stake.vkey \ --pool-owner-stake-verification-key-file low/stake.vkey \ --mainnet \ --single-host-pool-relay r1.cosd.com \ --pool-relay-port 5250 \ --single-host-pool-relay r2.cosd.com \ --pool-relay-port 5250 \ --metadata-url https://cosd.com/meta/cosd-pool.json \ --metadata-hash 64hexDigitPoolMetaHash \ --out-file low/pool.cert cardano-cli transaction build-raw \ --tx-in $(cat payment.utxo) \ --tx-out $(cat low/payment.addr)+0 \ --ttl 0 \ --fee 0 \ --certificate-file low/pool.cert \ --certificate-file low/delegation.cert \ --out-file pool-reg.test cardano-cli transaction calculate-min-fee \ --tx-body-file pool-reg.test \ --tx-in-count 1 \ --tx-out-count 1 \ --mainnet \ --witness-count 3 \ --byron-witness-count 0 \ --protocol-params-file protocol.json cat > fee (copy & paste last command output) echo $(cat pbal) - $(cat fee) | bc > pnet (THEN SUBTRACT A FURTHER 500000000 IF A FIRST TIME REGISTRATION) (check vs. pbal) cat pnet cardano-cli transaction build-raw \ --tx-in $(cat payment.utxo) \ --tx-out $(cat low/payment.addr)+$(cat pnet) \ --invalid-hereafter $(cat ttl) \ --fee $(cat fee) \ --certificate-file low/pool.cert \ --certificate-file low/delegation.cert \ --out-file pool-reg.draft cardano-cli transaction sign \ --mainnet \ --tx-body-file pool-reg.draft \ --signing-key-file high/payment.skey \ --signing-key-file high/stake.skey \ --signing-key-file high/cold.skey \ --out-file pool-reg.signed DON’T FORGET TO ADD NEW pool.cert TO LOW SECURITY KEY FILE ARCHIVE on node: SUBMIT pool-reg.signed VERIFY new registration on pool tool sites