mirror of
https://git.wownero.com/lza_menace/tg-bot.git
synced 2024-08-15 00:23:12 +00:00
add get-wallet-accounts
This commit is contained in:
parent
a754eb4163
commit
8534b3dbc4
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,11 @@ def get_address(account_index):
|
||||||
address = wownero.Wallet().addresses(account=int(account_index))[0]
|
address = wownero.Wallet().addresses(account=int(account_index))[0]
|
||||||
click.echo(address)
|
click.echo(address)
|
||||||
|
|
||||||
|
@click.command()
|
||||||
|
def get_wallet_accounts():
|
||||||
|
accounts = wownero.Wallet().accounts()
|
||||||
|
click.echo(accounts)
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.argument('dest_address')
|
@click.argument('dest_address')
|
||||||
@click.argument('amount')
|
@click.argument('amount')
|
||||||
|
@ -40,6 +45,7 @@ cli.add_command(get_users)
|
||||||
cli.add_command(get_address)
|
cli.add_command(get_address)
|
||||||
cli.add_command(transfer)
|
cli.add_command(transfer)
|
||||||
cli.add_command(generate_bot_help)
|
cli.add_command(generate_bot_help)
|
||||||
|
cli.add_command(get_wallet_accounts)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
cli()
|
cli()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue