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

6.28.6 • Public • Published

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-app-polkadot

Ledger Hardware Wallet Polkadot JavaScript bindings.


Are you adding Ledger support to your software wallet?

You may be using this package to communicate with the Polkadot 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

Polkadot

Polkadot API

Parameters

  • transport Transport

Examples

import Polkadot from "@ledgerhq/hw-app-polkadot";
const polkadot = new Polkadot(transport)

getAddress

Parameters
  • path string
  • requireConfirmation boolean if true, user must valid if the address is correct on the device (optional, default false)

Returns Promise<{pubKey: string, address: string, return_code: number}>

sign

Sign a payload

Parameters
  • path any
  • message string payload

Returns string signed payload to be broadcasted

/@ledgerhq/hw-app-polkadot/

    Package Sidebar

    Install

    npm i @ledgerhq/hw-app-polkadot

    Weekly Downloads

    471

    Version

    6.28.6

    License

    Apache-2.0

    Unpacked Size

    53.1 kB

    Total Files

    18

    Last publish

    Collaborators

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