@main.command()<EOL>@click.pass_context<EOL>@onlineChain<EOL>def listaccounts(ctx):
t = PrettyTable(["<STR_LIT:Name>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"])<EOL>for key in ctx.blockchain.wallet.getPublicKeys(True):<EOL><INDENT>for account in ctx.blockchain.wallet.getAccountsFromPublicKey(key):<EOL><INDENT>account = Account(account)<EOL>is_owner = key in [x[<NUM_LIT:0>] for x in account["<STR_LIT>"]["<STR_LIT>"]]<EOL>is_active = key in [x[<NUM_LIT:0>] for x in account["<STR_LIT>"]["<STR_LIT>"]]<EOL>is_memo = key == account["<STR_LIT>"]["<STR_LIT>"]<EOL>t.add_row(<EOL>[<EOL>account["<STR_LIT:name>"],<EOL>key,<EOL>"<STR_LIT:x>" if is_owner else "<STR_LIT>",<EOL>"<STR_LIT:x>" if is_active else "<STR_LIT>",<EOL>"<STR_LIT:x>" if is_memo else "<STR_LIT>",<EOL>]<EOL>)<EOL><DEDENT><DEDENT>click.echo(t)<EOL>
List accounts (for the connected network)