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?


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?

1 Answer 1


Yes, you can query balances with both cardano-cli and cardano-wallet. The developer portal shows this for different languages, but you can also read out the raw command-line query there.

cardano-cli: https://developers.cardano.org/docs/integrate-cardano/listening-for-payments-cli#query-utxo

cardano-wallet: https://developers.cardano.org/docs/integrate-cardano/listening-for-payments-wallet#retrieve-wallet-balance


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.