Device & Accrouts Info
Last updated
Last updated
Get the information about the current connected D'CENT biometric wallet device using getDeviceInfo()
function.
None
DeviceInfo
- the current connected D'CENT biometric wallet device Information
Name | Type | Description |
---|---|---|
Example
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
Returns
None
Example
Get the list of current accounts in the D'CENT biometric wallet using getAccountInfo()
function.
Parameters
None
Returns
List<Account>
- current account list in D'CENT biometric wallet.
Example
Create or update accounts on the device.
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
Returns
boolean
- sync result. true if you sync completely otherwise false.
Example
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
label
String
Label of connected device
deviceId
String
Device Identifier of connected device
fwVersion
String
Firmware version of connected device
ksmVersion
String
KSM version fo connected device
state
State
State of connected device
D'CENT biometric wallet's state values are as follows.
- init
, ready
, secure
, locked_fp
, locked_pin
Only "secure
" state dongle can be used.
coinList
List<CoinType>
Supported coin list of connected device
label
String
the label name of D'CENT biometric wallet.
accounts
List<SyncAccount>
| SyncAccount
account list or account to be synced.