Cardano sl wallet restore

I am migrating all wallet servers due to the security issue. But it seems ADA wallet is not migrated successfully.

I have tried below

POST - Tried to restore my wallet with Mnemonic. Now I can see my wallet info.
GET{walletId}/accounts - There is only one account in my wallet. But I can see more than 600 accounts in the previous server.

Please anyone can help me to migrate my wallet and accounts?

Do you see the keyword difference in your statements? If you had 600 wallets then you need to restore them 600 times with POST/api/v1/wallets.

What it mean is I have to import my accounts after importing my wallet like below?

  1. import wallet: POST
  2. import accounts 600 times: POST{walletId}/accounts/{accountId}

Do you have 600 wallets, or 600 accounts?

600 accounts in a single wallet


Oh… sorry 600 accounts in my previous server

if account was already used (meaning that any address from this account had any transactions on it) then it would be visible automatically directly after restoring the wallet.

Btw, did you wait for the proper wallet restoration, after calling POST/api/v1/wallets?

If your wallet is restored properly and you don’t see your accounts - that just means you have no transaction in them. In that case if you still need them (empty) - then you need to re-create them by calling POST/api/v1/wallets/{walletId}/accounts

There’s no such endpoint. You cannot create an account with a specific ID. You can just ask wallet to create A new account and it will just use next ID. Having empty accounts is a weird use-case, usually new accounts are created on-demand meaning that you will only create an account when you need to send a transaction - in that case all accounts would be NON-empty and would be automatically restored.

Maybe you haven’t properly wait for the wallet restoration.

1 Like

Thank you for your reply!

I could see only initial account… and syncState is “synced”


I could achieve my goal with the following APIs


restore didn’t actually restored my accounts.

Because all of them are most definitely had no transactions and I have explained that it’s exactly how it works and they are not expected to be restored.

Glad it worked out for you.