1.0.3 • Published 2 years ago
@blooo/hw-app-vtb v1.0.3
@blooo/hw-app-vtb
Ledger Hardware Wallet VTB JavaScript bindings.
API
Table of Contents
VTB
VTB API
Parameters
transport
Transport
Examples
import VTB from "@blooo/hw-app-vtb";
const vtb = new VTB(transport)
getAddress
Parameters
path
stringrequireConfirmation
boolean if true, user must valid if the address is correct on the device (optional, defaultfalse
)
Returns Promise<{pubKey: string, address: string, return_code: number}>
sign
Sign a payload
Parameters
path
anymessage
string payload
Returns string signed payload to be broadcasted