D'CENT Biometric will be connected with your PC or Labtop using USB Cable(Micro USB 5-pin type).
Basic structure
Functions
All API functions return a Promise.
When function processing is completed, it is resolved. If an error occurs, it is rejected.
In either case, respond with a JSON object.
If D'CENT wallet isn't connected via USB, you'll get the following error:
When executing a function that requires user authentication, an error occurs if the user cancels the authentication. The following shows the user cancel error in the Ethereum signed Transaction.
Basic functions
DcentCliConnector initialize
dcent-cli-connector provides functions for using D'CENT Biometric Wallet.
info() returns :
Set TimeOut Time
Sets the maximum time the function will run. Once set the timeout Time, it is valid until the value is set again. The default value is 60 seconds.
You can set the timeout time by calling setTimeOutMs () as shown below.
All functions except setTimeOutMs function are called and then respond with JSON Object as below when timeout occurs.