config
): HDWallet
Name | Type | Description |
---|---|---|
config | HDWalletConfig | Wallet configurations |
BytesLike
number
= 0
string
number
= 0
string
Optional
privateKey: string
string
get
extendedKey(): string
string
index
): HDWallet
Ex.: m/44'/0 -> Ex.: m/44'/1 -> m/44'/2
. Learn more Name | Type | Description |
---|---|---|
index | number | Index of the child HDWallet. |
path
): HDWallet
Name | Type | Description |
---|---|---|
path | string | The string representation of the child HDWallet. Ex.: m/44'/0'/0'/0/0 |
isPublic?
, testnet?
): string
Name | Type | Default value | Description |
---|---|---|---|
isPublic | boolean | false | enable to export public extendedKey, it not required when HDWallet didn't have the privateKey. |
testnet | boolean | false | Inform if should use testnet or mainnet prefix, default value is true (mainnet ). |
string
extendedKey
): HDWallet
Name | Type |
---|---|
extendedKey | string |
seed
): HDWallet
Name | Type | Description |
---|---|---|
seed | string | Seed |