New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-app-polkadot

Package Overview
Dependencies
Maintainers
0
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-app-polkadot

Ledger Hardware Wallet Polkadot Application API

6.32.0
latest
Source
npm
Version published
Maintainers
0
Created
Source

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
  • ss58prefix number (optional, default 0)
  • showAddrInDevice 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

Returns string signed payload to be broadcasted

Keywords

Ledger

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts