@ADAfrog I just got the same error but based on your replies I think it is because I already created a stake.cert. My question is, if I deleted the stake.cert on my end how would I recreate it again? (thankfully I just moved it to a different folder instead of deleting it.)
Hi Frog,
Yes I am working on mainnet. I initially generated the transaction using ilapās scripts and Mnemonic method Guide: How to Set Up a Cardano Stake Pool - CoinCashew
When using the official guide below are the steps Iām doing;
-
Slot number
cardano-cli shelley query tip --mainnet
{
āblockNoā: 4620432,
āheaderHashā: ā00cff4ae46f7de65ebfe992e72cc61a961e6f8443b2e520a2b6c9c3c827539daā,
āslotNoā: 7109115 -
Query transaction #
cardano@vmi433015:~/cardano-my-node$ cardano-cli shelley query utxo \
āaddress $(cat payment.addr)
āmainnet
TxHash TxIx Lovelace
a6f1cb3be4cb696c979926db226ba02312a66c54e0e00a89d1f559d2a09409bb 0 176836000000
- Draft the transaction
cardano-cli shelley transaction build-raw
ātx-in a6f1cb3be4cb696c979926db226ba02312a66c54e0e00a89d1f559d2a09409bb#0
ātx-out $(cat payment2.addr)+0
ātx-out $(cat payment.addr)+0
āttl 0
āfee 0
āout-file tx.draft
cat: payment2.addr: No such file or directory
option --tx-out: Failed reading: takeWhile1
I havenāt defined payment2.addr. What should this value be?
I have also tried generating the tx.raw manually and have tried both;
A.
cardano-cli shelley transaction build-raw
ātx-in a6f1cb3be4cb696c979926db226ba02312a66c54e0e00a89d1f559d2a09409bb#0
ātx-out $(cat payment.addr)+176833827195
āttl 7500000
āfee 172805
āout-file tx.raw
ācertificate-file stake.cert
B.
cardano-cli shelley transaction build-raw
ātx-in a6f1cb3be4cb696c979926db226ba02312a66c54e0e00a89d1f559d2a09409bb#0
ātx-out $(cat payment.addr)+[176836000000-200000-2000000]
āttl 7500000
āfee 200000
āout-file tx.raw
ācertificate-file stake.cert
Thanks again. Iād be completely stuck if it wasnāt for your help.
Hi M,
The stake verification key file is needed to generate a stake certificate for any given stake address:
cardano-cli shelley stake-address registration-certificate
āstaking-verification-key-file itn-pledge-stake.vkey
āout-file itn-pledge-stake.cert
Your friend, FROG
Hi Steve,
Have you tried creating a stake address manually or only by extracting the stake keys from a Daedalus mnemonic?
I recall others having issues with this as well and wanted to see created keys via cli would help remedy.
Your friend, FROG
Hi Frog,
No I havenāt tried CLI method just Mnemonic but will give it a go. I just wanted to confirm how I withdraw my pledge if I needed to. Would I just generate a transaction using the same method I did for deposit and registration transaction?
Thanks
Hi Frog,
The CLI method worked. Thanks so much for all your help! I couldnāt have done it without your assistance!
Hi Steve,
Rock on! You have a great attitude and drive to learn.
I wish you the best on your SPO journey and believe you will do well. Donāt hesitate to reach out if you run into any issues.
Your friend, FROG
Iām running into a transaction issue as well. I went through the process already and was able to get everything to work but i believe i screwed up when i realized my metadata was wrong so i attempted to fix it and something went wrong. I used the mnemonic method and paid the pool fee and deposit already. My pool is showing up Cardano PoolTool - The most comprehensive staking statistics for Cardano on the web. but i can not fix this error. Shelley command failed: transaction submit Error: Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (OutsideValidityIntervalUTxO (ValidityInterval {invalidBefore = SNothing, invalidHereafter = SJust (SlotNo 22060133)}) (SlotNo 22354739)))),LedgerFailure (UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = ā522d14ef81e8140bbe3089b05f44f618a81c85c57a4fb1fbc8f4f8ee9402d2d3ā}) 0])))),LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (DeltaCoin 0) (DeltaCoin 97821299)))),LedgerFailure (UtxowFailure (MissingVKeyWitnessesUTXOW (WitHashes (fromList [KeyHash āa19acffcdbf8ae27e171e468e6451b1189b7e84e447fafaf80de21b6ā]))))]
I am trying to retire my pool but I am getting this error message
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [DelegsFailure (DelplFailure (PoolFailure (StakePoolNotRegisteredOnKeyPOOL (KeyHash ā*****************************ā))))])