Constructor
new ColdcardExportPublicKey(options)
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | options argument Properties
|
- Source:
Example
const interaction = new ColdcardExportPublicKey();
const reader = new FileReader(); // application dependent
const jsonFile = reader.readAsText('ccxp-0F056943.json'); // application dependent
const {publicKey, rootFingerprint, bip32Path} = interaction.parse(jsonFile);
console.log(publicKey);
// "026942..."
console.log(rootFingerprint);
// "0f056943"
console.log(bip32Path);
// "m/45'/0/0"
Extends
- ColdcardMultisigSettingsFileParser