WalletAdapterRaw
Defined in: packages/iso-filecoin-wallets/src/local.js:50
Raw wallet implementation
Implements
Section titled “Implements”Extends
Section titled “Extends”TypedEventTarget
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WalletAdapterRaw(
config):WalletAdapterRaw
Defined in: packages/iso-filecoin-wallets/src/local.js:71
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
config | WalletConfig & object |
Returns
Section titled “Returns”WalletAdapterRaw
Overrides
Section titled “Overrides”TypedEventTarget.constructor
Properties
Section titled “Properties”[symbol]
Section titled “[symbol]”[symbol]:
boolean=true
Defined in: packages/iso-filecoin-wallets/src/local.js:52
account
Section titled “account”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
Section titled “network”network:
Network
Defined in: packages/iso-filecoin-wallets/src/local.js:74
privateKey
Section titled “privateKey”privateKey:
Uint8Array<ArrayBufferLike>
Defined in: packages/iso-filecoin-wallets/src/local.js:76
signatureType
Section titled “signatureType”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
Accessors
Section titled “Accessors”connected
Section titled “connected”Get Signature
Section titled “Get Signature”get connected():
boolean
Defined in: packages/iso-filecoin-wallets/src/local.js:127
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/local.js:123
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/local.js:130
Wallet support status (NotChecked, Detected, NotDetected, NotSupported)
Returns
Section titled “Returns”"NotChecked" | "Detected" | "NotDetected" | "NotSupported"
Methods
Section titled “Methods”addEventListener()
Section titled “addEventListener()”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | AddEventListenerOptions |
Returns
Section titled “Returns”void
Inherit Doc
Section titled “Inherit Doc”Inherited from
Section titled “Inherited from”TypedEventTarget.addEventListener
changeNetwork()
Section titled “changeNetwork()”changeNetwork(
network):Promise<{account:IAccount;network:Network; }>
Defined in: packages/iso-filecoin-wallets/src/local.js:147
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/local.js:134
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/local.js:99
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/local.js:169
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/local.js:138
Disconnect from the wallet
Returns
Section titled “Returns”Promise<void>
dispatchEvent()
Section titled “dispatchEvent()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | Event |
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”TypedEventTarget.dispatchEvent
dispatchTypedEvent()
Section titled “dispatchTypedEvent()”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends keyof WalletEvents |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
_type | T |
event | WalletEvents[T] |
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”TypedEventTarget.dispatchTypedEvent
emit()
Section titled “emit()”emit<
T>(…args):boolean
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:21
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends keyof WalletEvents |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args | WalletEvents[T]["detail"] extends IsAny<WalletEvents[T]["detail"]> ? [T, unknown] : [T, WalletEvents[T]["detail"]] |
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | EventListenerOptions |
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | AddEventListenerOptions |
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TypedEventTarget.on
personalSign()
Section titled “personalSign()”Defined in: packages/iso-filecoin-wallets/src/local.js:189
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | Uint8Array |
Returns
Section titled “Returns”removeEventListener()
Section titled “removeEventListener()”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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | T |
callback | TypedEventListenerOrEventListenerObject<WalletEvents, T> | null |
options? | boolean | EventListenerOptions |
Returns
Section titled “Returns”void
Inherit Doc
Section titled “Inherit Doc”Inherited from
Section titled “Inherited from”TypedEventTarget.removeEventListener
sign()
Section titled “sign()”Defined in: packages/iso-filecoin-wallets/src/local.js:178
Sign raw bytes
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
data | Uint8Array | raw bytes to sign |
Returns
Section titled “Returns”signMessage()
Section titled “signMessage()”Defined in: packages/iso-filecoin-wallets/src/local.js:200
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”create()
Section titled “create()”
staticcreate():WalletAdapterRaw
Defined in: packages/iso-filecoin-wallets/src/local.js:87
Returns
Section titled “Returns”WalletAdapterRaw