I have multiple accounts on older bitcoin core version (0.16.3) but in order to move to newer releases I must migrate accounts to new label format with additional database which hold each account balance. Since I have many accounts what is best (and easier) way to move all accounts to label format and to keep addresses that each account has.

Best regards

2 Answers 2


OK, thanks. For anyone else doing this type of migration, the procedure I did was :

  1. bitcoin-cli listaccounts //to get amounts of all balances on each account
  2. copy old wallet to newer version node
  3. bitcoind -upgradewallet //to upgrade wallet to newest version

This procedure preserves all keys, addresses and makes account a label so now when you enter bitcoin-cli listlabels you get all labels as were accounts before

  1. Since label can not have any balance, in separate database enter balance of each account/label from first step.

While upgrading make note of new transactions that should be added to wallet and run

  1. bitcoin-cli listtransactions XXX where XXX is number of last transactions you want to see

  2. add each new incoming transaction (if any) to database balance so balance in database match balance on wallet

That is it. Seems complex but it can be done in no time even for large number of accounts.

Best regards


From what I have read, when you upgrade Bitcoin core, the accounts will become labels. If my understanding is correct. addresses previously associated with an account will now be associated with a label with the same name.

You will not be able to ask Bitcoin core to compute a balance for a label. The accounts feature had some significant problems and was being used in ways that had not been anticipated. Therefore many associated actions and APIs for accounts are not available for labels.

Useful references

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.