diff --git a/examples/more_examples/02_query_address.py b/examples/more_examples/02_query_address.py index df82f6d2..012cd49f 100644 --- a/examples/more_examples/02_query_address.py +++ b/examples/more_examples/02_query_address.py @@ -65,3 +65,6 @@ print( f"{utxo.tx_hash}#{utxo.tx_index} \t {int(utxo.amount[0].quantity)/1000000} ADA [{tokens}]" ) + +total_lovelace = sum(int(utxo.amount[0].quantity) for utxo in utxos) +print(f"Total Balance: {total_lovelace / 1000000} ADA")