Skip to content

WalletAdapterFilsnap

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:28

Filsnap wallet implementation

  • TypedEventTarget

get connected(): boolean

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:148

Whether the wallet is currently connected

boolean


get connecting(): boolean

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:144

Whether the wallet is in the process of connecting

boolean


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

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:152

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

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

new WalletAdapterFilsnap(config): WalletAdapterFilsnap

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

ParameterType
configWalletConfig & object

WalletAdapterFilsnap

TypedEventTarget.constructor

changeNetwork(network): Promise<{ account: { address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }; network: Network; }>

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:159

ParameterType
networkNetwork

Promise<{ account: { address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }; network: Network; }>


checkSupport(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:264

Check if this wallet adapter is supported in the current environment

Promise<void>


connect(params?): Promise<{ account: { address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }; network: Network; }>

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:86

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

Promise<{ account: { address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }; network: Network; }>


deriveAccount(_index): Promise<{ address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }>

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:199

ParameterType
_indexnumber

Promise<{ address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }>


disconnect(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:276

Disconnect from the wallet

Promise<void>


sign(data): Promise<Signature>

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

ParameterTypeDescription
dataUint8Array<ArrayBufferLike>Data to sign

Promise<Signature>


signMessage(message): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:246

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 is(value): value is WalletAdapterFilsnap

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:79

ParameterType
valueWalletAdapter

value is WalletAdapterFilsnap

[symbol]: boolean = true

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:30


account: undefined | { address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; } = undefined

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

undefined

{ address: IAddress; path: string; privateKey?: Uint8Array<ArrayBufferLike>; publicKey: Uint8Array; type: "SECP256K1" | "BLS"; }

address: IAddress

path: string

Derivation path - only for HD wallets

optional privateKey: Uint8Array<ArrayBufferLike>

Private key - only for RAW and HD wallets

publicKey: Uint8Array

type: "SECP256K1" | "BLS"


filsnap: undefined | FilsnapAdapter

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:43


id: string = 'filsnap'

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:32

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


name: string = 'Filsnap'

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

Human readable wallet name


network: Network

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:70


signatureType: "SECP256K1" | "BLS"

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:71


syncWithProvider: boolean

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


uid: string

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

Unique identifier for this wallet instance


url: string = 'https://snaps.metamask.io/snap/npm/filsnap/'

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

Wallet homepage URL


version: undefined | string

Defined in: packages/iso-filecoin-wallets/src/filsnap.js:69