Class: LedgerExportExtendedPublicKey

ledger.LedgerExportExtendedPublicKey(bip32Path, network, includeXFP)

Class for wallet extended public key (xpub) interaction at a given BIP32 path.

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

Source:

Extends

  • module:ledger.LedgerExportHDNode

Methods

(async) run() → {string|Object}

Retrieve extended public key (xpub) from Ledger device for a given BIP32 path

Source:
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);