Skip to content

WalletAdapter

Defined in: packages/iso-filecoin-wallets/src/types.ts:76

Wallet adapter interface

sign(data): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/types.ts:153

Sign raw bytes

ParameterTypeDescription
dataUint8Arrayraw bytes to sign

Promise<Signature>

readonly account: undefined | IAccount

Defined in: packages/iso-filecoin-wallets/src/types.ts:120

Currently active account, if connected


changeNetwork: (network) => Promise<AccountNetwork>

Defined in: packages/iso-filecoin-wallets/src/types.ts:146

Change the network and derive a new account

ParameterTypeDescription
networkNetworkThe network to change to

Promise<AccountNetwork>


checkSupport: () => Promise<void>

Defined in: packages/iso-filecoin-wallets/src/types.ts:125

Check if this wallet adapter is supported in the current environment

Promise<void>


connect: (params) => Promise<AccountNetwork>

Defined in: packages/iso-filecoin-wallets/src/types.ts:130

Connect to the wallet

ParameterTypeDescription
params{ network?: Network; }Connect params
params.network?Network-

Promise<AccountNetwork>


readonly connected: boolean

Defined in: packages/iso-filecoin-wallets/src/types.ts:115

Whether the wallet is currently connected


readonly connecting: boolean

Defined in: packages/iso-filecoin-wallets/src/types.ts:110

Whether the wallet is in the process of connecting


deriveAccount: (index) => Promise<IAccount>

Defined in: packages/iso-filecoin-wallets/src/types.ts:140

Derive a new account at the given index

ParameterTypeDescription
indexnumberThe derivation path index

Promise<IAccount>


disconnect: () => Promise<void>

Defined in: packages/iso-filecoin-wallets/src/types.ts:134

Disconnect from the wallet

Promise<void>


readonly id: string

Defined in: packages/iso-filecoin-wallets/src/types.ts:85

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


name: string

Defined in: packages/iso-filecoin-wallets/src/types.ts:90

Human readable wallet name


readonly network: Network

Defined in: packages/iso-filecoin-wallets/src/types.ts:100

Current network (mainnet or testnet)


signMessage: (message) => Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/types.ts:160

Sign filecoin message

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>


readonly support: "NotChecked" | "Detected" | "NotDetected" | "NotSupported"

Defined in: packages/iso-filecoin-wallets/src/types.ts:105

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


readonly uid: string

Defined in: packages/iso-filecoin-wallets/src/types.ts:80

Unique identifier for this wallet instance


url: string

Defined in: packages/iso-filecoin-wallets/src/types.ts:95

Wallet homepage URL