|
|
|
@ -671,6 +671,16 @@ def ethereum_sign_tx(client, host, chain_id, address, value, gas_limit, gas_pric
|
|
|
|
|
return 'Signed raw transaction: %s' % tx_hex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@cli.command(help='Get NEM address for specified path.')
|
|
|
|
|
@click.option('-n', '--address', required=True, help="BIP-32 path, e.g. m/44'/0'/43'/0/0")
|
|
|
|
|
@click.option('-N', '--network', type=int, default=0x68)
|
|
|
|
|
@click.option('-d', '--show-display', is_flag=True)
|
|
|
|
|
@click.pass_obj
|
|
|
|
|
def nem_get_address(client, address, network, show_display):
|
|
|
|
|
address_n = client.expand_path(address)
|
|
|
|
|
return client.nem_get_address(address_n, network, show_display)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@cli.command(help='Sign (and optionally broadcast) NEM transaction')
|
|
|
|
|
@click.option('-n', '--address', help='BIP-32 path to signing key')
|
|
|
|
|
@click.option('-f', '--file', type=click.File('r'), default='-', help='Transaction in NIS (RequestPrepareAnnounce) format')
|
|
|
|
|