5 from zeth.cli.utils import open_web3_from_ctx, load_zeth_address_secret, \
 
    6     open_wallet, load_mixer_description_from_ctx
 
    8 from click 
import Context, command, option, pass_context
 
   12 @option(
"--balance", is_flag=
True, help=
"Show total balance")
 
   13 @option(
"--spent", is_flag=
True, help=
"Show spent notes")
 
   15 def ls_notes(ctx: Context, balance: bool, spent: bool) -> 
None:
 
   17     List the set of notes owned by this wallet 
   22     mixer_instance = mixer_desc.mixer.instantiate(web3)
 
   24     wallet = 
open_wallet(mixer_instance, js_secret, client_ctx)
 
   27     for addr, short_commit, value 
in wallet.note_summaries():
 
   28         print(f
"{short_commit}: value={value.ether()}, addr={addr}")
 
   32         print(f
"TOTAL BALANCE: {total.ether()}")
 
   38     for addr, short_commit, value 
in wallet.spent_note_summaries():
 
   39         print(f
"{short_commit}: value={value.ether()}, addr={addr}")