Constructor
new LedgerExportExtendedPublicKey(bip32Path, network, includeXFP)
Parameters:
Name | Type | Description |
---|---|---|
bip32Path |
string | path |
network |
string | bitcoin network |
includeXFP |
boolean | return xpub with root fingerprint concatenated |
Extends
- module:ledger.LedgerExportHDNode
Methods
(async) run() → {string|Object}
Retrieve extended public key (xpub) from Ledger device for a given BIP32 path
Returns:
the extended public key (returns object if asked to include root fingerprint)
- Type
- string | Object
Example
import {LedgerExportExtendedPublicKey} from "unchained-wallets";
const interaction = new LedgerExportExtendedPublicKey({network, bip32Path});
const xpub = await interaction.run();
console.log(xpub);