GitHub, Ledger Devs Discord, Developer Portal
Ledger Hardware Wallet Polkadot JavaScript bindings.
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.
Polkadot API
transportTransport
import Polkadot from "@ledgerhq/hw-app-polkadot";
const polkadot = new Polkadot(transport)pathstringss58prefixnumber (optional, default0)showAddrInDeviceboolean if true, user must valid if the address is correct on the device (optional, defaultfalse)runtimeUpgraded(optional, defaultfalse)
Returns Promise<{pubKey: string, address: string, return_code: number}>
Sign a payload
Returns string signed payload to be broadcasted
