Device & Accrouts Info
Get Device Info
Get the information about the current connected D'CENT biometric wallet device using getDeviceInfo()
function.
Parameters
None
Returns
DeviceInfo
- the current connected D'CENT biometric wallet device Information
class DeviceInfo
Name | Type | Description |
---|---|---|
deviceId |
| device unique identifier |
label |
| label of the device |
fwVersion |
| firmware version of the device |
ksmVersion |
| KSM(software running on SE) version of the device |
coinList |
| the list of coin which the device supported |
Example
Set Device Label
Set the label name to the D'CENT biometric wallet using setDeviceLabel()
function.(If you reboot your D'CENT, you can see the label name.)
Parameters
newLabel : (String) the label name of D'CENT biometric wallet
Returns
result: (Bool)
true
if successful,false
if error occurred
Example
Get Account Info
Get the list of current accounts in the D'CENT biometric wallet using getAccountInfo()
function.
Parameters
None
Returns
result: (Bool)
true
if successful,false
if error occurredaccountInfos: Account object list (The Account object is configured as follows.)
label : label of account
coinGroup : coin group name of account
coinName : coin name of account
receivingAddressPath : address path of account
Example
Create & Sync Account
Create or update accounts on the network. 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. 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.
But the syncAccount()
method is not used only for creating 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.
(※ As of firmware version 2.9.2 or later, the D'CENT biometric wallet device does not support updating the balance.)
Parameters
account: SynAccount object to be synced (The SynAccount object is configured as follows.)
coinGroup: account coin group
coinName: account coin name
label: account label
addressPath: key path of account
balance: balance of account
Returns
result: (Bool)
true
if successful,false
if error occurred
Example
Last updated