Stake Address Registration

It is now time to register our stake address.

Create the registration certificate using your wallet1 stake.vkey.

cd ~/preprodnet/pool

cardano-cli stake-address registration-certificate \
--stake-verification-key-file ~/preprodnet/wallets/wallet1/stake.vkey \
--out-file registration.cert

Now let's use the simplified "transaction build" command in cardano-cli.

Here we are building a transaction using a UTxO from wallet1 to fund this transaction.

cardano-cli transaction build \
--testnet-magic 1 \
--witness-override 2 \
--tx-in <your utxo hash>#<txix> \
--change-address $(cat ~/preprodnet/wallets/wallet1/payment.addr) \
--certificate-file ~/preprodnet/pool/registration.cert \
--out-file ~/preprodnet/tx/sartx.raw
You'll notice that unlike the transaction build-raw command, the transaction build command automatically calculates the tx fee.

Sign the raw transaction with your wallet1 payment and stake keys.

Now submit the transaction.

If all was done correctly you have succssfully registered your stake address and are just about ready to register the pool itself!

Last updated