@ledgerhq/hw-app-polkadot
v6.32.0
Published
Ledger Hardware Wallet Polkadot Application API
Downloads
3,891
Readme
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
stringss58prefix
number (optional, default0
)showAddrInDevice
boolean if true, user must valid if the address is correct on the device (optional, defaultfalse
)
Returns Promise<{pubKey: string, address: string, return_code: number}>
sign
Sign a payload
Parameters
Returns string signed payload to be broadcasted