Skip to content

WalletAdapterRaw

Defined in: packages/iso-filecoin-wallets/src/local.js:50

Raw wallet implementation

  • TypedEventTarget

new WalletAdapterRaw(config): WalletAdapterRaw

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

ParameterType
configWalletConfig & object

WalletAdapterRaw

TypedEventTarget.constructor

[symbol]: boolean = true

Defined in: packages/iso-filecoin-wallets/src/local.js:52


account: IAccount | undefined = undefined

Defined in: packages/iso-filecoin-wallets/src/local.js:59


id: string = 'raw'

Defined in: packages/iso-filecoin-wallets/src/local.js:54

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


name: string = 'Raw (Unsafe)'

Defined in: packages/iso-filecoin-wallets/src/local.js:55

Human readable wallet name


network: Network

Defined in: packages/iso-filecoin-wallets/src/local.js:74


privateKey: Uint8Array<ArrayBufferLike>

Defined in: packages/iso-filecoin-wallets/src/local.js:76


signatureType: "SECP256K1" | "BLS"

Defined in: packages/iso-filecoin-wallets/src/local.js:75


uid: string

Defined in: packages/iso-filecoin-wallets/src/local.js:53

Unique identifier for this wallet instance


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

Defined in: packages/iso-filecoin-wallets/src/local.js:56

Wallet homepage URL

get connected(): boolean

Defined in: packages/iso-filecoin-wallets/src/local.js:127

Whether the wallet is currently connected

boolean


get connecting(): boolean

Defined in: packages/iso-filecoin-wallets/src/local.js:123

Whether the wallet is in the process of connecting

boolean


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

Defined in: packages/iso-filecoin-wallets/src/local.js:130

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

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

addEventListener<T>(type, callback, options?): void

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:29

Type Parameter
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"
ParameterType
typeT
callbackTypedEventListenerOrEventListenerObject<WalletEvents, T> | null
options?boolean | AddEventListenerOptions

void

TypedEventTarget.addEventListener


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

Defined in: packages/iso-filecoin-wallets/src/local.js:147

ParameterType
networkNetwork

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


checkSupport(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/local.js:134

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/local.js:99

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

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


deriveAccount(_index): Promise<IAccount>

Defined in: packages/iso-filecoin-wallets/src/local.js:169

ParameterType
_indexnumber

Promise<IAccount>


disconnect(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/local.js:138

Disconnect from the wallet

Promise<void>


dispatchEvent(event): boolean

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:11575

The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

MDN Reference

ParameterType
eventEvent

boolean

TypedEventTarget.dispatchEvent


dispatchTypedEvent<T>(_type, event): boolean

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:20

Dispatches a synthetic event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

Type Parameter
T extends keyof WalletEvents
ParameterType
_typeT
eventWalletEvents[T]

boolean

TypedEventTarget.dispatchTypedEvent


emit<T>(…args): boolean

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:21

Type Parameter
T extends keyof WalletEvents
ParameterType
argsWalletEvents[T]["detail"] extends IsAny<WalletEvents[T]["detail"]> ? [T, unknown] : [T, WalletEvents[T]["detail"]]

boolean

TypedEventTarget.emit


off<T>(type, callback, options?): void

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:55

Alias for TypedEventTarget.removeEventListener

Type Parameter
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"
ParameterType
typeT
callbackTypedEventListenerOrEventListenerObject<WalletEvents, T> | null
options?boolean | EventListenerOptions

void

TypedEventTarget.off


on<T>(type, callback, options?): void

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:38

Alias for TypedEventTarget.addEventListener

Type Parameter
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"
ParameterType
typeT
callbackTypedEventListenerOrEventListenerObject<WalletEvents, T> | null
options?boolean | AddEventListenerOptions

void

TypedEventTarget.on


personalSign(data): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/local.js:189

ParameterType
dataUint8Array

Promise<Signature>


removeEventListener<T>(type, callback, options?): void

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:46

Type Parameter
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"
ParameterType
typeT
callbackTypedEventListenerOrEventListenerObject<WalletEvents, T> | null
options?boolean | EventListenerOptions

void

TypedEventTarget.removeEventListener


sign(data): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/local.js:178

Sign raw bytes

ParameterTypeDescription
dataUint8Arrayraw bytes to sign

Promise<Signature>


signMessage(message): Promise<Signature>

Defined in: packages/iso-filecoin-wallets/src/local.js:200

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 create(): WalletAdapterRaw

Defined in: packages/iso-filecoin-wallets/src/local.js:87

WalletAdapterRaw