How to use multiple accounts under a single HD wallet?

(Jeshan Babooa) #1

(note: cross-posting from the PR github issue)

hi all, are there any examples on how to use multiple accounts under one HD wallet?
even high-level steps will do.

I have looked through the BWC & BWS code but never managed to figure it out.
If, for example, I tried the seedFromExtendedPrivateKey method passing in an account index like 1, then I’ve seen that you get different copayer ID back than the default (i.e with account index 0). But then, I’d want to use the result to create addresses and get balances. It says that it’s not authorised because BWS isn’t aware of this copayer ID, isn’t it?

Let me know advice you have.