WalletAdapterHd
Defined in: packages/iso-filecoin-wallets/src/hd.js:31
HD wallet implementation
Implements
Section titled “Implements”Extends
Section titled “Extends”TypedEventTarget
Accessors
Section titled “Accessors”connected
Section titled “connected”Get Signature
Section titled “Get Signature”get connected():
boolean
Defined in: packages/iso-filecoin-wallets/src/hd.js:97
Whether the wallet is currently connected
Returns
Section titled “Returns”boolean
connecting
Section titled “connecting”Get Signature
Section titled “Get Signature”get connecting():
boolean
Defined in: packages/iso-filecoin-wallets/src/hd.js:93
Whether the wallet is in the process of connecting
Returns
Section titled “Returns”boolean
support
Section titled “support”Get Signature
Section titled “Get Signature”get support():
"NotChecked"
|"Detected"
|"NotDetected"
|"NotSupported"
Defined in: packages/iso-filecoin-wallets/src/hd.js:101
Wallet support status (NotChecked, Detected, NotDetected, NotSupported)
Returns
Section titled “Returns”"NotChecked"
| "Detected"
| "NotDetected"
| "NotSupported"
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WalletAdapterHd(
config
):WalletAdapterHd
Defined in: packages/iso-filecoin-wallets/src/hd.js:57
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
config | WalletHDConfig |
Returns
Section titled “Returns”WalletAdapterHd
Overrides
Section titled “Overrides”TypedEventTarget.constructor
Methods
Section titled “Methods”changeNetwork()
Section titled “changeNetwork()”changeNetwork(
network
):Promise
<{account
:IAccount
;network
:Network
; }>
Defined in: packages/iso-filecoin-wallets/src/hd.js:163
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
network | Network |
Returns
Section titled “Returns”Promise
<{ account
: IAccount
; network
: Network
; }>
checkSupport()
Section titled “checkSupport()”checkSupport():
Promise
<void
>
Defined in: packages/iso-filecoin-wallets/src/hd.js:106
Check if this wallet adapter is supported in the current environment
Returns
Section titled “Returns”Promise
<void
>
connect()
Section titled “connect()”connect(
params?
):Promise
<{account
:IAccount
;network
:Network
; }>
Defined in: packages/iso-filecoin-wallets/src/hd.js:124
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
params? | { network? : Network ; } |
params.network? | Network |
Returns
Section titled “Returns”Promise
<{ account
: IAccount
; network
: Network
; }>
deriveAccount()
Section titled “deriveAccount()”Defined in: packages/iso-filecoin-wallets/src/hd.js:191
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
index | number |
Returns
Section titled “Returns”disconnect()
Section titled “disconnect()”disconnect():
Promise
<void
>
Defined in: packages/iso-filecoin-wallets/src/hd.js:153
Disconnect from the wallet
Returns
Section titled “Returns”Promise
<void
>
setup()
Section titled “setup()”setup(
config
):void
Defined in: packages/iso-filecoin-wallets/src/hd.js:115
Setup the wallet from a mnemonic
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
config | WalletHDMnemonicConfig & object |
Returns
Section titled “Returns”void
sign()
Section titled “sign()”Defined in: packages/iso-filecoin-wallets/src/hd.js:212
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
data | Uint8Array <ArrayBufferLike > | Data to sign |
Returns
Section titled “Returns”signMessage()
Section titled “signMessage()”Defined in: packages/iso-filecoin-wallets/src/hd.js:228
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
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.from | string | - |
message.gasFeeCap | string | - |
message.gasLimit | number | - |
message.gasPremium | string | - |
message.method | number | - |
message.nonce | number | - |
message.params | string | - |
message.to | string | - |
message.value | string | - |
message.version | 0 | - |
Returns
Section titled “Returns”fromMnemonic()
Section titled “fromMnemonic()”
static
fromMnemonic(config
):WalletAdapterHd
Defined in: packages/iso-filecoin-wallets/src/hd.js:82
HD wallet from mnemonic
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
config | WalletHDMnemonicConfig |
Returns
Section titled “Returns”WalletAdapterHd
static
is(value
):value is WalletAdapterHd
Defined in: packages/iso-filecoin-wallets/src/hd.js:72
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
value | WalletAdapter |
Returns
Section titled “Returns”value is WalletAdapterHd
Properties
Section titled “Properties”[symbol]
Section titled “[symbol]”[symbol]:
boolean
=true
Defined in: packages/iso-filecoin-wallets/src/hd.js:33
account
Section titled “account”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
Section titled “network”network:
Network
Defined in: packages/iso-filecoin-wallets/src/hd.js:64
signatureType
Section titled “signatureType”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