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}")