Create a bulk of addresses using the trezorctl command

From Trezor Wiki
Jump to: navigation, search

This manual describes how to create a bulk of 100 addresses from your account using the trezorctl command.


WarningThese commands are only for advanced users, please use them with caution.


See also

Please install Python-trezor, for more information see Using trezorctl commands with Trezor.

To retrieve 100 Legacy account addresses, use this command:

for i in $(seq 0 99); do trezorctl get-address -n "m/44'/0'/0'/0/$i"; done

To retrieve 100 SegWit addresses, use this command:

for i in $(seq 0 99); do trezorctl get-address -n "m/49'/0'/0'/0/$i" -t p2shsegwit; done

It is also possible to generate 100 change addresses or addresses of your second or third account, just make some slight changes to your derivation path:


Note Derivation path is "m / purpose' / coin_type' / account' / chain / address_index"


  • Examples:

Change addresses of the first SegWit account:

for i in $(seq 0 99); do trezorctl get-address -n "m/49'/0'/0'/1/$i" -t p2shsegwit; done

Addresses of the second Legacy account:

for i in $(seq 0 99); do trezorctl get-address -n "m/44'/0'/1'/0/$i"; done
Like Trezor? Get one here!