Skip to content

WalletAdapterHd

Defined in: packages/iso-filecoin-wallets/src/hd.js:31

HD wallet implementation

  • TypedEventTarget

get connected(): boolean

Defined in: packages/iso-filecoin-wallets/src/hd.js:97

Whether the wallet is currently connected

boolean


get connecting(): boolean

Defined in: packages/iso-filecoin-wallets/src/hd.js:93

Whether the wallet is in the process of connecting

boolean


get support(): "NotChecked" | "Detected" | "NotDetected" | "NotSupported"

Defined in: packages/iso-filecoin-wallets/src/hd.js:101

Wallet support status (NotChecked, Detected, NotDetected, NotSupported)

"NotChecked" | "Detected" | "NotDetected" | "NotSupported"

new WalletAdapterHd(config): WalletAdapterHd

Defined in: packages/iso-filecoin-wallets/src/hd.js:57

ParameterType
configWalletHDConfig

WalletAdapterHd

TypedEventTarget.constructor

changeNetwork(network): Promise<{ account: IAccount; network: Network; }>

Defined in: packages/iso-filecoin-wallets/src/hd.js:163

ParameterType
networkNetwork

Promise<{ account: IAccount; network: Network; }>


checkSupport(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/hd.js:106

Check if this wallet adapter is supported in the current environment

Promise<void>


connect(params?): Promise<{ account: IAccount; network: Network; }>

Defined in: packages/iso-filecoin-wallets/src/hd.js:124

ParameterType
params?{ network?: Network; }
params.network?Network

Promise<{ account: IAccount; network: Network; }>


deriveAccount(index): Promise<IAccount>

Defined in: packages/iso-filecoin-wallets/src/hd.js:191

ParameterType
indexnumber

Promise<IAccount>


disconnect(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/hd.js:153

Disconnect from the wallet

Promise<void>


setup(config): void

Defined in: packages/iso-filecoin-wallets/src/hd.js:115

Setup the wallet from a mnemonic

ParameterType
configWalletHDMnemonicConfig & object

void


sign(data): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/hd.js:212

ParameterTypeDescription
dataUint8Array<ArrayBufferLike>Data to sign

Promise<Signature>


signMessage(message): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/hd.js:228

ParameterTypeDescription
message{ from: string; gasFeeCap: string; gasLimit: number; gasPremium: string; method: number; nonce: number; params: string; to: string; value: string; version: 0; }Filecoin message to sign
message.fromstring-
message.gasFeeCapstring-
message.gasLimitnumber-
message.gasPremiumstring-
message.methodnumber-
message.noncenumber-
message.paramsstring-
message.tostring-
message.valuestring-
message.version0-

Promise<Signature>


static fromMnemonic(config): WalletAdapterHd

Defined in: packages/iso-filecoin-wallets/src/hd.js:82

HD wallet from mnemonic

ParameterType
configWalletHDMnemonicConfig

WalletAdapterHd


static is(value): value is WalletAdapterHd

Defined in: packages/iso-filecoin-wallets/src/hd.js:72

ParameterType
valueWalletAdapter

value is WalletAdapterHd

[symbol]: boolean = true

Defined in: packages/iso-filecoin-wallets/src/hd.js:33


account: undefined | IAccount = undefined

Defined in: packages/iso-filecoin-wallets/src/hd.js:39


id: string = 'hd'

Defined in: packages/iso-filecoin-wallets/src/hd.js:35

Wallet adapter identifier (e.g. ‘filsnap’, ‘ledger’, ‘hd’, ‘raw’)


name: string = 'Burner Wallet'

Defined in: packages/iso-filecoin-wallets/src/hd.js:36

Human readable wallet name


network: Network

Defined in: packages/iso-filecoin-wallets/src/hd.js:64


signatureType: "SECP256K1" | "BLS"

Defined in: packages/iso-filecoin-wallets/src/hd.js:65


uid: string

Defined in: packages/iso-filecoin-wallets/src/hd.js:34

Unique identifier for this wallet instance


url: string = 'https://filecoin.io'

Defined in: packages/iso-filecoin-wallets/src/hd.js:37

Wallet homepage URL