evmGetPublicKey

Ethereum: get public key

Retrieves BIP32 extended public derived by given BIP32 path. User is presented with a description of the requested key and asked to confirm the export.

const result = await HardwareSDK.evmGetPublicKey(connectId, deviceId, params);

Params

Optional common params

Exporting single public key

  • path - required string | Array<number> minimum length is 3. read more

  • showOnOneKey - optional boolean determines if address will be displayed on device. Default is set to true

  • chainId - optional number The ChainId in ETH is a unique identifier for a specific Ethereum network, used to distinguish different versions of the blockchain. Reference.

Exporting bundle of public keys

  • bundle - Array of Objects with path, coin fields

Example

Return public key of first ethereum account:

HardwareSDK.evmGetPublicKey(connectId, deviceId, {
    path: "m/44'/60'/0'/0/0",
    showOnOneKey: true,
    chainId: 1
});

Return a bundle of public keys for multiple ethereum accounts:

Result

Result with only one public key

Read more about BIP32 serialization format

Result with bundle of public keys

Error

Last updated

Was this helpful?