I have an xpub key with which I want to generate all addresses which have been used or will be used and then find out the keys which have balance.
Here's a sample xpubkey with balance- xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz