Last updated
Last updated
You can get connected device information using getDeviceInfo()
function.
getDeviceInfo()
returns :
device_id : device unique identifier
label : label of the device
fw_version : firmware version of the device
ksm_version : KSM(software running on SE) version of the device
coin_list : the list of coin which the device supported
If you want to change the label of device, you can do it using setLabel()
fucntion.
After execute above code, you can see the modified label on your device when reboot the device.
You can add account using syncAccount()
function. You can create an account by specifying the coin type and key path of the account you want to add. If you want to add token type coin account, you must specify the coin name as the first 14 digits of contract address.
syncAccount()
method can be used also for updating account. If the account of the specified key path is already exist, the syncAccount()
method do not create account just sync the account information. For example, if you want to change the label of account or modify the balance, you can use the syncAccount()
method.
address_path follows the BIP44 rules.
Accounts are distinguished by account'
in address_path.
You can retrieve account list of connected device using getAccountInfo()
function.
Returned account object has:
label : label of account
coin_group : coin group name of account
coin_name : coin name of account
address_path : address path of account
For more information, refer to