Register Stake Address
Dingo - Register Stake Address
Section titled “Dingo - Register Stake Address”The stake address must be registered on-chain. This costs transaction fees plus a deposit (currently 2 ADA on mainnet, returned when you deregister).
✅ This guide assumes your files are in the $HOME/dingo folder. Adjust paths below if necessary.
Step 1 - Generate stake registration certificate
Section titled “Step 1 - Generate stake registration certificate”⚠️ On Air Gapped
cd ~/dingocardano-cli conway stake-address registration-certificate \--stake-verification-key-file stake.vkey \--key-reg-deposit-amt 2000000 \--out-file stake.certStep 2 - Build Transaction
Section titled “Step 2 - Build Transaction”Copy stake.cert to your hot environment to your dingo folder.
Query the current slot (used for —invalid-hereafter):
currentSlot=$(cardano-cli conway query tip --testnet-magic 2 | jq -r '.slot')echo Current Slot: $currentSlotBuild the transaction — transaction build calculates fees and change automatically:
cd ~/dingocardano-cli conway transaction build \--tx-in $(cardano-cli query utxo --address $(cat payment.addr) --out-file /dev/stdout | jq -r 'keys[0]') \--change-address $(cat payment.addr) \--certificate-file stake.cert \--invalid-hereafter $(( ${currentSlot} + 1000 )) \--witness-override 2 \--out-file tx.raw
--witness-override 2tells the fee estimator that two keys will sign (payment + stake).
Step 3 - Sign Transaction
Section titled “Step 3 - Sign Transaction”Copy tx.raw to your air gapped dingo folder.
Sign with both the payment and stake signing keys:
⚠️ On Air Gapped
cd ~/dingocardano-cli conway transaction sign \--tx-body-file tx.raw \--signing-key-file payment.skey \--signing-key-file stake.skey \--out-file tx.signedStep 4 - Submit Transaction
Section titled “Step 4 - Submit Transaction”Copy tx.signed to your hot environment in your dingo folder.
cd ~/dingocardano-cli conway transaction submit --tx-file tx.signed