How I solved my zero-balance issue in the Daedalus ITN Wallet

carlos lopez de lara
Jan 14 · 7 min read

DISCLAIMER: I DO NOT SUGGEST TO TRY THIS METHOD AND THIS IS NOT AN OFFICIAL SOLUTION TO THE PROBLEM. FOLLOW AT YOUR OWN RISK.

Quick and dirty

My Daedalus Rewards Wallet for the Cardano incentivized testnet suddenly was showing a zero balance. I tried the solutions suggested by the support website for four days (deleting the state directory, restoring the wallet and moving funds back to the rewards wallet). If you have tried this and did not worked for you, you might have been frustrated by the transaction never going through.

So today I tried a different approach and worked nicely:

  1. Restored my wallet using Cardano wallet backend (Cardano BE)
  2. Sent a 2 tAda transaction from Cardano BE to my pledge address. And — Voila !!

Since the rewards wallet was created in Daedalus it uses UTXO adressess. Remember that UTXOs work different than account addresses: The whole balance of the Wallet is used as an input, then sent 2tAda to the reciver address and the “change” is sent to a new UTXO address. This UTXO address (obviously) belongs to the same rewards wallet so it is recognized by Daedalus. And that was it. The balance is now shown in Daedalus.

I don’t know if Daedalus will send the funds back to the Balance wallet or show a zero balance again tomorrow morning. By now it worked.


Detailed description of the problem and solution:

The problem

In recent days I have seen two different (but related) problems with the Cardano Daedalus ITN.

  1. Your funds went back from the rewards wallet to the balance wallet.
  2. Your funds seem to have vanished, your wallets showed a zero balance.

This is not real money, but anyways, the experience causes you a microinfarct.

The suggested solution in the support site tells you to:

1. Delete the contents of the state directory, and

2. Restore your Rewards wallet & Balance wallet from the recovery phrase.

While this solution worked for many people (as I discovered in the telegram channels) it didn’t work for me. After deleting the directory and recovering the wallet Daedalus prompted me to move my testnet ada to a rewards wallet:

But the transaction never makes it to a block, It gets stuck somewhere and after some time (I think it is 10 blocks) Daedalus suggests to cancel the transaction as it has been pending for a long time.

There is a particular transaction that might be preventing the problem to be solved by deleting the state directory. But it is a good thing!

To create a stake pool one needed to use a combination of software pieces:

First, one uses Cardano Backend to restore the Snapshot wallet and to get the secret key out from the mnemonics.

Then one uses JCLI to get the public key and to generate an account- type address (the pledge address) required to create the stake pool.

Let me show the history of transactions of my pledge address as I think there is one particular transaction that is preventing the funds to be restored with the deletion of the state directory method:

Transaction 1. After restoring my Balance wallet in Cardano BE, I sent 2.345678 tAda to the pledge address created in JCLI. Just a test transaction.

Transaction 2. From Cardano BE I sent 500.654321 tAda to the pledge address to have enough funds to pay for the stake pool certificate. (The sequence .654321 just allows to avoid mistakes with too many zeros)

Transaction 3. The fee of the stake pool certificate.

Transaction 4. I moved almost all my funds (86807.684603 tAda) to the pledge address.

Transaction 5. The fee for the delegation certificate.

Everything was fine.

Then, Daedalus ITN went out and after restoring the wallet it prompts you to create a Rewards Wallet. So I created it and transferred the funds from the pledge address to my new Rewards Wallet.

Transactions 6, 7 and 8. A couple of test transactions and the “big” one.

But wait !!! My pledge address was left with almost nothing. I thought the pledge address was important for potential delegators to see that I was delegating to my own stake pool (showing commitment!). So I sent 46,000 tAda back from my rewards wallet to the pledge address. Leaving 40,805.123456 in the rewards wallet.

Transactions 9 and 10. A 1 tAda test transaction and a “big” transaction from rewards to pledge

This last transaction is the transaction I regard as responsible for not being able to restore the wallet in Daedalus. But it is a good thing !!!!

Why?

Well, in my case, remember that I had split my funds between the rewards wallet and the pledge address, succeding in process of deleting, restoring and moving the funds, would have resulted in a terrible problem, a catastrophic double spending problem! Let me elaborate:

After todays wallet restoration, the balance shown in the Balance Wallet was $87,312.884602 tAda and that was the ammount I was trying to move back to the rewards wallet. The exact same balance that I had in Daedalus at the time of the snapshot as you can see in the Transaction 1 above.

But remember that I had sent 46,000 and change to the pledge address which is an account-type address that is NOT recognized by Daedalus. So when Daedalus tells you that it is syncing the transaction history, apparently it just can’t handle the balance of the pledge address and doesn’t know what to do with it. So it just stalls.

In conclusion, had it succeded to restore the funds to the rewards wallet, It would have created tAda out of nothing and created a double spending problem. So it is a good thing it did not!

How-to send a transaction using Cardano BE

  1. Run Cardano-wallet backend connecting it to your already running jormungandr node.
./cardano-wallet serve — node-port 3100 — port 8090 — genesis-block-hash 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676

2) In a new terminal

### 
Get the Balance of the pledge address
###

After this transaction, apparently Daedalus recognized the funds from the new UTXO address and the Reward Wallet shows the correct balance and everything is back to normal.

Anyway, I made a second transaction from Cardano BE to put all my funds together in my pledge address, waiting for an update to Daedalus that solves the issue of the funds going back to Balance or going to zero.

And this is how I got my funds back !!!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade