I followed this tutorial a while back to set up stake pool ticker MSPN.
stake-pool-course/stake-pool-guide.
I am running the relay and core nodes in docker using nessusio/cardano-node images. The nodes are sync’d and seem to be running fine.
I read somewhere I don’t need to update KES keys to deregister the pool.
I want to deregister the pool and claim back the ADA. Following this tutorial,
stake-pool-guide/stake-pool/retire_stakepool.
I am able to run all commands, but I get an error when I submit the transaction:
$ docker exec -it cardano-core /bin/bash
bash-4.4# cd /var/cardano/config/keys/pool
bash-4.4# cardano-cli stake-pool deregistration-certificate \
> --cold-verification-key-file cold.vkey \
> --epoch 151 \
> --out-file pool.dereg
bash-4.4# cardano-cli query utxo --mainnet --address `cat paymentwithstake.addr`
TxHash TxIx Amount
--------------------------------------------------------------------------------------
db958b...07c1d817d19d 0 5048036535 lovelace + TxOutDatumNone
bash-4.4# cardano-cli transaction build-raw \
> --tx-in db958b...07c1d817d19d#0 \
> --tx-out $(cat paymentwithstake.addr)+0 \
> --ttl 0 \
> --fee 0 \
> --out-file tx.draft \
> --certificate-file pool.dereg
bash-4.4# cardano-cli transaction calculate-min-fee \
> --tx-body-file tx.draft \
> --tx-in-count 1 \
> --tx-out-count 1 \
> --witness-count 1 \
> --byron-witness-count 0 \
> --mainnet \
> --protocol-params-file parameters.json
172629 Lovelace
bash-4.4# expr 5048036535 - 172629
5047863906
bash-4.4#
bash-4.4# expr 64971386 + 1000
64972386
bash-4.4# cardano-cli transaction build-raw \
> --tx-in db958b5b85305f22c8d7d23b7e84872ab9f3f6700cc898fa77e707c1d817d19d#0 \
> --tx-out $(cat ../keysnaddresses/paymentwithstake.addr)+5047863906 \
> --ttl 64972386 \
> --fee 172629 \
> --out-file tx.draft \
> --certificate-file pool.dereg
bash-4.4# cardano-cli transaction calculate-min-fee \
> --tx-body-file tx.draft \
> --tx-in-count 1 \
> --tx-out-count 1 \
> --witness-count 1 \
> --byron-witness-count 0 \
> --mainnet \
> --protocol-params-file parameters.json
172629 Lovelace
bash-4.4# expr 5048036535 - 172629
5047863906
bash-4.4# expr 64971386 + 1000
64972386
bash-4.4# cardano-cli transaction build-raw \
> --tx-in db958b5b8...7e707c1d817d19d#0 \
> --tx-out $(cat paymentwithstake.addr)+5047863906 \
> --ttl 64972386 \
> --fee 172629 \
> --out-file tx.draft \
> --certificate-file pool.dereg
bash-4.4# cardano-cli transaction sign \
> --tx-body-file tx.raw \
> --signing-key-file payment.skey \
> --signing-key-file cold.skey \
> --mainnet \
> --out-file tx.signed
bash-4.4# cardano-cli transaction submit \
> --tx-file tx.signed \
> --mainnet
This is the error:
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (MissingVKeyWitnessesUTXOW (WitHashes (fromList [KeyHash “1aaa6df3b93b…d7d8e73e816d”])))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 0 (fromList )) (Value 5048233716 (fromList ))))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash “f2317bafbadf9cc2c…dd5ee0abbf9be0bc55”}) 0])))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 55352394)}) (SlotNo 64971588))))])
Any pointers would really be appreciated.