-snip-
You're right, it only checks the 20 addresses I tested out.
I think the
xpub-scanner from Ledger HQ can scan these 50k addresses;
Its default is also 20 address index, here's the "
gap_limit" in its code:
github.com/LedgerHQ/xpub-scan/blob/main/src/configuration/settings.ts#L13Means if the tool scanned 20 empty addresses in succession, it will stop checking the next.
Sure he can change it to 50,000 but that'll generate unnecessary number of keys.
It will be more efficient if he can skip all those low indexes like what I've suggested above.
but if it's native SegWit, edit it to: m/0'/0
I did a slight edit to this:
"
but if it's native SegWit, go to: BIP141 tab, select P2WPKH and edit it to: m/0'/0"