Hi! Thanks, working great!
Just a question, when do I stop deriving? I would guess all HD key wallets would derive contiguous keys right?
Such as: m/0/0/0, m/0/0/1, m/0/0/2
Otherwise you'd never know when to stop deriving.
Is that correct? Can I get the balance of an XPUB by looking for addresses with transactions and stop as soon as an address doesn't have a transaction in the BC?