A hierarchical-deterministic (HD) wallet generates a new key pair from a master key pair, allowing for multiple addresses to be generated from the same seed so that change from transactions go to a previously unused address, enhancing privacy and security.
The hierarchical structure resembles that of a tree, with the master key βdeterminingβ the key pairs that follow it in the hierarchy. If you are running KDF in HD mode, and don't already have too many unused addresses, you can use the get_new_address method to generate a new address. The generated address will be shown in the task::account_balance RPCs and at the next coin activation.
For hardware wallets (e.g. Trezor), you need to use the task based address creation methods: task::get_new_address::init, task::get_new_address::status, task::get_new_address::user_actionandtask::get_new_address::cancel`.
The ticker of the coin you want to get a new address for
account_id
integer
Generally this will be 0 unless you have multiple accounts registered on your Trezor
chain
string
Internal, or External. Defaults to External. External is used for addresses that are intended to be visible outside of the wallet (e.g. for receiving payments). Internal is used for addresses which are not meant to be visible outside of the wallet and is used to return the leftover change from a transaction.
gap_limit
integer
Optional. The maximum number of empty addresses in a row. Defaults to the value provided on activation or 20 if no value was provided
The identifying number returned when initiating the task.
user_action
object
Object containing the params below
user_action.action_type
string
Will be TrezorPin for this method
user_action.pin
string (number)
When the Trezor device is displaying a grid of numbers for PIN entry, this param will contain your Trezor pin, as mapped through your keyboard numpad. See the image below for more information.