Error sending TX

@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 https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#9-generate-block-producer-keys

When using the official guide below are the steps I’m doing;

  1. Slot number
    cardano-cli shelley query tip --mainnet
    {
    “blockNo”: 4620432,
    “headerHash”: “00cff4ae46f7de65ebfe992e72cc61a961e6f8443b2e520a2b6c9c3c827539da”,
    “slotNo”: 7109115

  2. Query transaction #
    cardano@vmi433015:~/cardano-my-node$ cardano-cli shelley query utxo \

–address $(cat payment.addr)
–mainnet
TxHash TxIx Lovelace


a6f1cb3be4cb696c979926db226ba02312a66c54e0e00a89d1f559d2a09409bb 0 176836000000

  1. 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

1 Like

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!

1 Like

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

2 Likes

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”]))))]