@ledgerhq/hw-app-near
v6.29.4
Published
Ledger Hardware Wallet Near Application API
Downloads
5,080
Readme
@ledgerhq/hw-app-near
Ledger Hardware Wallet NEAR JavaScript bindings.
Are you adding Ledger support to your software wallet?
You may be using this package to communicate with the NEAR 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.
API
Table of Contents
Near
NEAR API
Parameters
transport
Transport
Examples
import Near from "@ledgerhq/hw-app-near";
const near = new Near(transport)
getAddress
Parameters
Examples
near.getAddress("44'/397'/0'/0'/0'", true).then(o => o.address)
Returns Promise<{publicKey: string, address: string}> an object with a publicKey and address
signTransaction
Parameters
transaction
Uint8Arraypath
string
Returns Promise<(Buffer | undefined)> a signature to be broadcasted to the chain