I need to periodically check the balance of a number of bitcoin addresses (a few tens or hundreds addresses). I noticed that Electrum may syncronize a thousand or more imported addresses in a matter of a few seconds. But I failed to realise how it is done searching through Electrum source code.
Which methods it uses? Does it really import all these addresses into currently connected remote node and then calls listunspent
no matter how many addresses I insert into the wallet?
Can you please point me to a code snippet that implements such funtionality