I'm developing bitcoin payment processing application.
I've two question to ask:
- In each bip32 address, How much UTXO each address should have to consider generating new address to avoid address re-using? for example If address A used twice should I generate a new address or does it have specified number for address re-use before generating new one?
- When new address generated, from my understanding , I've to scan following address for each address derivation path to see if each index have fund or not:
- Legacy
- Segwit
- Change address for Legacy
- Change address for Segwit
What's best way to scan addresses without submitting so much request (for each index) to blockchain explorer to scan funds?
Thanks in advance.