@ledgerhq/hw-app-near
TypeScript icon, indicating that this package has built-in type declarations

6.28.8 • Public • Published

Github, Ledger Devs Slack

@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

Returns Promise<(Buffer | undefined)> a signature to be broadcasted to the chain

Package Sidebar

Install

npm i @ledgerhq/hw-app-near

Weekly Downloads

767

Version

6.28.8

License

Apache-2.0

Unpacked Size

45.3 kB

Total Files

27

Last publish

Collaborators

  • thomas.coudray
  • ldg-github-ci
  • aboissiere
  • vbouzon
  • gbrahm-ledger
  • sergii-shkolin
  • phenry-ledger