D'CENT developer guide
Official siteUser GuideBlogTwitter
  • Introduction
  • How to Connect Your DApp to D’CENT Mobile App
  • In-app browser (dapp browser)
    • Getting Started
    • EVM compatible networks
    • Klaytn network
    • Tron network
  • Dynamic Link
    • Dynamic Link to In-app Browser
    • EIP-681 : Transaction/Payment Request
  • D'CENT WalletConnect (DWC)
    • Introduction
    • Packages
    • D'CENT WalletConnect
    • Test Environment
    • WalletConnect monorepo
  • Collectibles
    • NFT list on Collectibles tab
  • D'CENT biometric wallet for PC
    • D'CENT SDK for PC Environment
    • dcent-web-connector
      • Configurations
      • Device & Accounts Info.
      • Address & XPUB
      • Ethereum & EVM compatible
      • Klaytn
      • Bitcoin
      • XRPL (XRP Ledger)
      • Hedera (HBAR & HTS)
      • Tron (TRX & TRC20)
      • Stellar
      • Tezos (XTZ & XTZ_FA)
      • Vechain
      • Near (NEAR & Near Token)
      • Havah
      • Polkadot
      • Polkadot Parachain
      • Cosmos & Cosmos compatible network
      • Algorand
    • dcent-cli-connector
      • Configurations
      • Device & Accounts Info.
      • Address & XPUB
      • Ethereum & EVM compatible
      • Hedera (HBAR & HTS)
    • dcent-provider
  • D'CENT BIOMETRIC WALLET FOR Mobile
    • D'CENT SDK for Mobile Environment
    • dcent-biometric-sdk-android
      • Setup
      • Initialize
      • Device & Accrouts Info
      • Address & XPUB
      • Bitcoin
      • Ethereum & EVM compatible
      • Klaytn
      • XRPL
      • Binance
      • Stellar
      • Tron
      • Cardano
      • Hedera
      • Stacks
      • Solana
      • Conflux
      • Polkadot
      • Cosmos
      • Tezos
      • Vechain
      • Near
      • Havah
      • Algorand
    • dcent-biometric-sdk-ios
      • Setup
      • Initialize
      • Device & Accrouts Info
      • Address & XPUB
      • Bitcoin
      • Ethereum & EVM compatible
      • Klaytn
      • XRPL
      • Binance
      • Stellar
      • Tron
      • Cardano
      • Hedera
      • Stacks
      • Solana
      • Conflux
      • Polkadot
      • Cosmos
      • Tezos
      • Vechain
      • Near
      • Havah
      • Algorand
  • D'CENT Integrated Packages
    • Web3Modal
    • web3-onboard
  • Misc.
    • Logo & Brand Guideline
Powered by GitBook
On this page
  • Get Device Info
  • Parameters
  • Returns
  • Set Device Label
  • Get Account Info
  • Create & Sync Account

Was this helpful?

  1. D'CENT BIOMETRIC WALLET FOR Mobile
  2. dcent-biometric-sdk-android

Device & Accrouts Info

PreviousInitializeNextAddress & XPUB

Last updated 1 year ago

Was this helpful?

Get Device Info

Get the information about the current connected D'CENT biometric wallet device using getDeviceInfo() function.

Parameters

None

Returns

- the current connected D'CENT biometric wallet device Information

class DeviceInfo

Name
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

Example

DeviceInfo mDeviceInfo = mDcentmanager.getDeviceInfo();

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

Parameter
Type
Description

label

String

the label name of D'CENT biometric wallet.

Returns

None

Example

mDcentmanager.setDeviceLavel("newLabel");

Get Account Info

Get the list of current accounts in the D'CENT biometric wallet using getAccountInfo() function.

Parameters

None

Returns

Example

List<Account> accountList = mDcentmanager.getAccountInfo()

Create & Sync Account

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

Parameter
Type
Description

accounts

List<SyncAccount> | SyncAccount

account list or account to be synced.

Returns

boolean - sync result. true if you sync completely otherwise false.

Example

  String labelOfAccount = "bitcoin_1" ; // account label
  String balanceOfAccount = "0 BTC" ; // balance of account. This string will be displayed on device.
  String keyPath = "m/44'/0'/0'/0/0/"; // key path of the account

  /* 
  Bitcoin account will be created.
  if bitcoin account is already created, the bitcoin account label and balance will be just modified.
  */
  SyncAccount syncAccount = new SyncAccount(CoinType.BITCOIN.getCoinGroup(),
  CoinType.BITCOIN.name(),
  labelOfAccount,
  balanceOfAccount,
  keyPath);
  mDcentmanager.syncAccount(syncAccount);
  

- current account list in D'CENT biometric wallet.

List<Account>
DeviceInfo