GitHub, Ledger Devs Discord, Developer Portal
Ledger Hardware Wallet ETH JavaScript bindings.
You may be using this package to communicate with the VeChain Nano App.
For a smooth and quick integration:
- See the developers’ documentation on the Developer Portal and
- Go on Discord to chat with developer support and the developer community.
VeChain API
-
transport
Transport -
scrambleKey
(optional, default"V3T"
)
import Vet from "@ledgerhq/hw-app-vet";
const vet = new Vet(transport)
get VeChain address for a given BIP 32 path.
-
path
string a path in BIP 32 format -
display
boolean? -
chainCode
boolean? -
statusCodes
Array<StatusCodes> (optional, default[StatusCodes.OK]
)
vet.getAddress("m/44'/818'/0'/0").then(o => o.address)
Returns Promise<{publicKey: string, address: string, chainCode: string?}> an object with a publicKey and address
You can sign a transaction and retrieve v, r, s given the raw transaction and the BIP 32 path of the account to sign.