I have followed all the instructions here:
and here:
I have come to a brick wall, where I just find the instructions too confusing.
Can someone explain what the process is of creating certficates and delegating etc.
I have made 2 sets of staking keys, one for the pool owner and one for the rewards:
owner_stake_1.vkey
owner_stake_1.skey
reward_stake_1.vkey
reward_stake_1.skey
So far this is how I understand it, but I am getting errors:
I have to do this is this order:
- MAKE A CERT FOR ME TO PLEDGE MY STAKE AS POOL OWNER:
cardano-cli shelley stake-address registration-certificate
–stake-verification-key-file ~/stake-keys/owner_stake_1.vkey
–out-file ~/certs/owner_stake_1.cert
- Build the transaction to register your stake address. (and pay key deposit? 400000)
cardano-cli shelley transaction build-raw
–tx-in 89290f1e6871dbbeb2d1521a169834ac1f81882604340f458d2bce483b9ba4e0#1
–tx-out $(cat ~/stake-keys/owner_payment_1.addr)+199400000
–ttl 618000
–fee 200000
–certificate-file ~/certs/owner_stake_1.cert
–out-file tx3.raw \
SIGN IT
cardano-cli shelley transaction sign
–tx-body-file tx3.raw
–signing-key-file ~/stake-keys/owner_payment_1.skey
–signing-key-file ~/stake-keys/owner_stake_1.skey
–testnet-magic 42
–out-file tx3.signed
SUBMIT IT
cardano-cli shelley transaction submit
–tx-file tx3.signed
–testnet-magic 42
CREATE DELEGATION CERT
AND SEND DELEGATION (PLEDGE)
cardano-cli shelley stake-address delegation-certificate
–stake-verification-key-file ~/stake-keys/owner_stake_1.vkey
–cold-verification-key-file ~/cold-keys/cold.vkey
–out-file ~/certs/delg.cert
Then build, sign and submit a transaction as before (using a UTxO that has some funds associated with it).
cardano-cli shelley transaction build-raw
–tx-in 80d8d92a1bcbda3289e760b3a680951c5dd4da3455edd2d149a0f120d4e4712f#0
–tx-in cc4f13fe99100afc882cba9ab98a7fe54fd56ef5f70054cd2482d1f495ef8bdd#0
–tx-out $(cat ~/stake-keys/owner_payment_1.addr)+199200000
–ttl 622320
–fee 200000
–certificate-file ~/certs/reg.cert
–certificate-file ~/certs/delg.cert
–out-file tx4.raw \
SIGN
cardano-cli shelley transaction sign
–tx-body-file tx4.raw
–signing-key-file ~/stake-keys/owner_stake_1.skey
–signing-key-file ~/cold-keys/cold.skey
–testnet-magic 42
–out-file tx4.signed
SUBMIT
cardano-cli shelley transaction submit
–tx-file tx4.signed
–testnet-magic 42
The problem is that I don’t understand a few things:
How am I actually sending the pledge? To where? Also just the whole process doesn’t make any sense to me.
I am correct in thinking that when i send the pledge, I just make a transaction where I subtract the fee and the pledge amount and then I submit it. So the actual pledge amount is not really being ‘sent’ anywhere?
If someone can explain it, it would be great , as the 2 resources above are very unclear and confusing.