From ffeb94f79260a803f5208206a82abb22280448e5 Mon Sep 17 00:00:00 2001 From: Jonathan Cross Date: Fri, 24 Nov 2017 05:11:38 +0100 Subject: [PATCH] USAGE: Verbose args & adding native Bech32 segwit --- USAGE.rst | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/USAGE.rst b/USAGE.rst index 9aae9eb6e..4f8c6a7ea 100644 --- a/USAGE.rst +++ b/USAGE.rst @@ -22,28 +22,48 @@ Get first receiving address of first account for Bitcoin (Legacy / non-SegWit): .. code:: - trezorctl get_address -c Bitcoin -t address -n "m/44'/0'/0'/0/0" + trezorctl get_address --coin Bitcoin --script-type address --address "m/44'/0'/0'/0/0" + + +Get first receiving address of first account for Bitcoin (Bech32 native SegWit P2WPKH): + +.. code:: + + trezorctl get_address --coin Bitcoin --script-type segwit --address "m/49'/0'/0'/0/0" Get first receiving address of first account for Bitcoin (SegWit-in-P2SH): .. code:: - trezorctl get_address -c Bitcoin -t p2shsegwit -n "m/49'/0'/0'/0/0" + trezorctl get_address --coin Bitcoin --script-type p2shsegwit --address "m/49'/0'/0'/0/0" Get Legacy Bitcoin ``xpub`` (can be used to create a watch-only wallet): .. code:: - trezorctl get_public_node -c Bitcoin -n "m/44'/0'/0'" + trezorctl get_public_node --coin Bitcoin --address "m/44'/0'/0'" Litecoin -------- +Get first receiving address of first account for Litecoin (Bech32 native SegWit P2WPKH): + +.. code:: + + trezorctl get_address --coin Litecoin --script-type segwit --address "m/49'/2'/0'/0/0" + + Get first receiving address of first account for Litecoin (SegWit-in-P2SH): .. code:: - trezorctl get_address -c Litecoin -t p2shsegwit -n "m/49'/2'/0'/0/0" + trezorctl get_address --coin Litecoin --script-type p2shsegwit --address "m/49'/2'/0'/0/0" + + +NOTES +----- + +1. Bech32 native SegWit encoded addresses require Trezor Firmware v1.6.0 or later.