Unable to register stake address on the mainnet

Hi all,

I’ve Google searched the error I got while trying to register a stake address to the blockchain but couldn’t find a solution. Therefore, I’m posting it here to hopefully have someone to help fix it. Sorry if it is a silly question or it has already answered somewhere.

I’m trying to register a stake address but I keep having this error:

“Error while submitting tx: ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = “b64ae44e1195b04663ab863b62337e626c65b0c9855a9fbb9ef4458f81a6f5ee”}) 1])))),LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Coin 0) (Coin 87177000))))]”

From Google search, I think it complained that my input coin amount is ZERO, but checking the balance, I did have the right amount which is 87177000

cardano-cli shelley query utxo --address $(cat payment.addr) --mainnet
TxHash TxIx Lovelace

a7ff6b087e8f67df0ec356bf04b971e480a82548602d5b10a181f5d8b2e4e0dc 11 87177000

Below are the commands I used to submit the transaction:

cardano-cli shelley transaction build-raw --tx-in b64ae44e1195b04663ab863b62337e626c65b0c9855a9fbb9ef4458f81a6f5ee#1 --tx-out $(cat payment.addr)+85004547 --ttl 6224000 --fee 172453 --out-file tx.raw --certificate-file stake.cert

cardano-cli shelley transaction sign --tx-body-file tx.raw --signing-key-file payment.skey --signing-key-file stake.skey --mainnet --out-file tx.signed

cardano-cli shelley transaction submit --tx-file tx.signed --mainnet

Your help would be greatly appreciated. I’ve spent quite a lot of time trying to figure out :frowning:

Thanks

looks like you’re using the wrong utxo

a7ff6b087e8f67df0ec356bf04b971e480a82548602d5b10a181f5d8b2e4e0dc 11 87177000

doesn’t match

b64ae44e1195b04663ab863b62337e626c65b0c9855a9fbb9ef4458f81a6f5ee#1

3 Likes

Oh, really appreciate your quick help ADAfrog.

I copied the command from the guide and I thought that the address hash I need to send the fees to.
But obviously I was wrong. Now I understand it now. Thanks a lot

My pleasure, Trung!

Let us know if you need any further assistance.

Your friend, FROG

2 Likes

Updating the tx-in to a7ff6b087e8f67df0ec356bf04b971e480a82548602d5b10a181f5d8b2e4e0dc#11 fixed the issue. Thanks a lot ADAfrog :pray:

My pleasure, Trung!

1 Like