code: def listaccounts(ctx):
      
      t = [["Name", "Key", "Owner", "Active", "Memo"]]
      for key in tqdm(ctx.bitshares.wallet.getPublicKeys(True)):
          for account in ctx.bitshares.wallet.getAccountsFromPublicKey(key):
              account = Account(account)
              is_owner = key in [x[0] for x in account["owner"]["key_auths"]]
              is_active = key in [x[0] for x in account["active"]["key_auths"]]
              is_memo = key == account["options"]["memo_key"]
              t.append([
                  account["name"],
                  key,
                  "x" if is_owner else "",
                  "x" if is_active else "",
                  "x" if is_memo else "",
              ])
      print_table(t)
docs: List accounts (for the connected network)