Skip to main content
  • Snap
  • Restricted

snap_getBip32Entropy

Parameters

curve

"ed25519" | "ed25519Bip32" | "secp256k1"

path

string[]

source

string | null

The ID of the entropy source to use. If not specified, the primary entropy source will be used. For a list of available entropy sources, see the snap_listEntropySources method.

Returns

depth

number

The 0-indexed path depth of this node.

masterFingerprint

number | null

The fingerprint of the master node, i.e., the node at depth 0. May be undefined if this node was created from an extended key.

parentFingerprint

number

The fingerprint of the parent key, or 0 if this is a master node.

index

number

The index of the node, or 0 if this is a master node.

network

"mainnet" | "testnet" | null

The network for the node. This is only used for extended keys, and defaults to mainnet.

privateKey

string | null

The (optional) private key of this node.

publicKey

string

The public key of this node.

chainCode

string

The chain code of this node.

curve

"ed25519" | "ed25519Bip32" | "secp256k1"

The name of the curve used by the node.