How does Dedalus know what is my balance on given wallets? Is there a way I can do the same thing using cardano-cli
or cardano-wallet
?
Edit:
I have found Wallet UTXO Distribution screen that:
When you receive ada to your Daedalus wallet, it simply means Daedalus has identified a UTXO that can be spent with the keys managed by your wallet... Daedalus determines your balance by scanning the Cardano blockchain and aggregating the value of any UTXO the wallet is able to spend with the keys associated to your wallet.
Does that mean that Daedalus checks (has access to keys so can validate if the address belongs to a wallet(?)) all transactions and just sums up the balance?
And given that it's true I would need to somehow scan my copy of the blockchain to get the same information?