Skip to content

FilecoinAppKitAdapter

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

TODO:

  • auth provider for SIWX

Filecoin adapter for AppKit

  • AdapterBlueprint

new FilecoinAppKitAdapter(params): FilecoinAppKitAdapter

Defined in: packages/iso-filecoin-wallets/src/appkit.js:42

ParameterType
params{ adapters: WalletAdapter[]; }
params.adaptersWalletAdapter[]

FilecoinAppKitAdapter

AdapterBlueprint.constructor

adapters: WalletAdapter[]

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


adapterType: string | undefined

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:32

AdapterBlueprint.adapterType


protected availableConnections: Connection[]

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:36

AdapterBlueprint.availableConnections


protected availableConnectors: FilecoinConnector[]

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:35

AdapterBlueprint.availableConnectors


caipNetworks: CaipNetwork[] | undefined

Defined in: packages/iso-filecoin-wallets/src/appkit.js:61


protected optional connector: FilecoinConnector

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:37

AdapterBlueprint.connector


getCaipNetworks: (namespace?) => CaipNetwork[]

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:33

ParameterType
namespace?ChainNamespace

CaipNetwork[]

AdapterBlueprint.getCaipNetworks


getConnectorId: (namespace) => string | undefined

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:34

ParameterType
namespaceChainNamespace

string | undefined

AdapterBlueprint.getConnectorId


namespace: ChainNamespace | undefined

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:30

AdapterBlueprint.namespace


optional projectId: string

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:31

AdapterBlueprint.projectId


protected optional provider: Provider

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:38

AdapterBlueprint.provider


protected providerHandlers: Record<string, { accountsChanged: (accounts) => void; chainChanged: (chainId) => void; disconnect: () => void; provider: Provider | CombinedProvider; } | null>

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:39

AdapterBlueprint.providerHandlers

get connections(): Connection[]

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:65

Gets the available connections.

Connection[]

An array of available connections

AdapterBlueprint.connections


get connectors(): Connector[]

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:60

Gets the available connectors.

Connector[]

An array of available connectors

AdapterBlueprint.connectors


get networks(): CaipNetwork[]

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:70

Gets the supported networks.

CaipNetwork[]

An array of supported networks

AdapterBlueprint.networks

protected addConnection(…connections): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:95

Adds connections to the available connections list

ParameterTypeDescription
connectionsConnection[]The connections to add

void

AdapterBlueprint.addConnection


protected addConnector(…connectors): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:90

Adds one or more connectors to the available connectors list.

ParameterTypeDescription
connectorsFilecoinConnector[]The connectors to add

void

AdapterBlueprint.addConnector


protected clearConnections(emit?): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:105

Clears all connections from the available connections list

ParameterTypeDescription
emit?booleanWhether to emit the connections event

void

AdapterBlueprint.clearConnections


connect(params): Promise<ConnectResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:128

Connect

ParameterType
paramsConnectParams

Promise<ConnectResult>

AdapterBlueprint.connect


connectWalletConnect(_chainId?): Promise<{ clientId: string; } | undefined>

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:136

Connects to WalletConnect.

ParameterTypeDescription
_chainId?string | numberOptional chain ID to connect to

Promise<{ clientId: string; } | undefined>

AdapterBlueprint.connectWalletConnect


construct(params): void

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

ParameterType
paramsParams

void

AdapterBlueprint.construct


protected deleteConnection(connectorId): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:100

Deletes a connection from the available connections list

ParameterTypeDescription
connectorIdstringThe connector ID of the connection to delete

void

AdapterBlueprint.deleteConnection


disconnect(_params): Promise<DisconnectResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:203

Disconnect

ParameterType
_paramsDisconnectParams

Promise<DisconnectResult>

AdapterBlueprint.disconnect


protected emit<T>(eventName, data?): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:131

Emits an event with the given name and optional data.

Type Parameter
T extends EventName
ParameterTypeDescription
eventNameTThe name of the event to emit
data?EventData[T]The optional data to be passed to the event listeners

void

AdapterBlueprint.emit


protected emitFirstAvailableConnection(): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:274

Emits the first available connection.

void

AdapterBlueprint.emitFirstAvailableConnection


estimateGas(_params): Promise<EstimateGasTransactionResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:312

Estimate gas

ParameterType
_paramsEstimateGasTransactionArgs

Promise<EstimateGasTransactionResult>

AdapterBlueprint.estimateGas


formatUnits(_params): string

Defined in: packages/iso-filecoin-wallets/src/appkit.js:346

Format units

ParameterType
_paramsFormatUnitsParams

string

AdapterBlueprint.formatUnits


getAccounts(params): Promise<GetAccountsResult>

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

Get accounts

ParameterType
paramsGetAccountsParams

Promise<GetAccountsResult>

AdapterBlueprint.getAccounts


getBalance(params): Promise<GetBalanceResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:236

Get balance

ParameterType
paramsGetBalanceParams

Promise<GetBalanceResult>

AdapterBlueprint.getBalance


getCapabilities(): Promise<{ }>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:356

Promise<{ }>

AdapterBlueprint.getCapabilities


getConnection(params): { account: { address: string; publicKey?: string; type?: string; } | undefined; accounts: object[]; auth?: { name: string | undefined; username: string | undefined; }; caipNetwork?: CaipNetwork; connector: ChainAdapterConnector | undefined; connectorId: string; icon?: string; name?: string; networkIcon?: string; } | null

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:287

Gets a connection based on provided parameters. If connectorId is provided, returns connection for that specific connector. Otherwise, returns the first available valid connection.

ParameterTypeDescription
paramsGetConnectionParamsConnection parameters

{ account: { address: string; publicKey?: string; type?: string; } | undefined; accounts: object[]; auth?: { name: string | undefined; username: string | undefined; }; caipNetwork?: CaipNetwork; connector: ChainAdapterConnector | undefined; connectorId: string; icon?: string; name?: string; networkIcon?: string; } | null

Connection or null if none found

AdapterBlueprint.getConnection


getProfile(): Promise<{ profileImage: undefined; profileName: undefined; }>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:350

Promise<{ profileImage: undefined; profileName: undefined; }>


protected getWalletConnectConnector(): WalletConnectConnector

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:236

WalletConnectConnector

AdapterBlueprint.getWalletConnectConnector


getWalletConnectProvider(params): any

Defined in: packages/iso-filecoin-wallets/src/appkit.js:386

ParameterType
params{ provider: any; }
params.providerany

any

AdapterBlueprint.getWalletConnectProvider


grantPermissions(): Promise<{ }>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:359

Promise<{ }>

AdapterBlueprint.grantPermissions


protected listenProviderEvents(connectorId, provider): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:265

Listens to provider events for a specific connector.

ParameterTypeDescription
connectorIdstringThe ID of the connector
providerProvider | CombinedProviderThe provider to listen to

void

AdapterBlueprint.listenProviderEvents


off<T>(eventName, callback): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:120

Removes an event listener for a specific event.

Type Parameter
T extends EventName
ParameterTypeDescription
eventNameTThe name of the event
callbackEventCallback<T>The callback function to be removed

void

AdapterBlueprint.off


on<T>(eventName, callback): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:113

Adds an event listener for a specific event.

Type Parameter
T extends EventName
ParameterTypeDescription
eventNameTThe name of the event
callbackEventCallback<T>The callback function to be called when the event is emitted

void

AdapterBlueprint.on


protected onAccountsChanged(accounts, connectorId, disconnectIfNoAccounts?): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:248

Handles accounts changed event for a specific connector.

ParameterTypeDescription
accounts(string | ParsedCaipAddress)[]The accounts that changed
connectorIdstringThe ID of the connector
disconnectIfNoAccounts?boolean-

void

AdapterBlueprint.onAccountsChanged


protected onChainChanged(chainId, connectorId): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:259

Handles chain changed event for a specific connector.

ParameterTypeDescription
chainIdstring | numberThe ID of the chain that changed
connectorIdstringThe ID of the connector

void

AdapterBlueprint.onChainChanged


protected onConnect(accounts, connectorId): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:242

Handles connect event for a specific connector.

ParameterTypeDescription
accounts(string | ParsedCaipAddress)[]The accounts that changed
connectorIdstringThe ID of the connector

void

AdapterBlueprint.onConnect


protected onDisconnect(connectorId): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:253

Handles disconnect event for a specific connector.

ParameterTypeDescription
connectorIdstringThe ID of the connector

void

AdapterBlueprint.onDisconnect


parseUnits(_params): bigint

Defined in: packages/iso-filecoin-wallets/src/appkit.js:336

Parse units

ParameterType
_paramsParseUnitsParams

bigint

AdapterBlueprint.parseUnits


optional reconnect(params): Promise<void>

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:231

Reconnects to a wallet.

ParameterTypeDescription
paramsConnectParamsReconnection parameters

Promise<void>

AdapterBlueprint.reconnect


removeAllEventListeners(): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:124

Removes all event listeners.

void

AdapterBlueprint.removeAllEventListeners


protected removeProviderListeners(connectorId): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:270

Removes provider listeners for a specific connector.

ParameterTypeDescription
connectorIdstringThe ID of the connector

void

AdapterBlueprint.removeProviderListeners


revokePermissions(): Promise<`0x${string}`>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:362

Promise<`0x${string}`>

AdapterBlueprint.revokePermissions


sendTransaction(_params): Promise<SendTransactionResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:324

Send transaction

ParameterType
_paramsSendTransactionParams

Promise<SendTransactionResult>

AdapterBlueprint.sendTransaction


setAuthProvider(authProvider): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:85

Sets the auth provider.

ParameterTypeDescription
authProviderW3mFrameProviderThe auth provider instance

void

AdapterBlueprint.setAuthProvider


protected setStatus(status, chainNamespace?): void

Defined in: node_modules/.pnpm/@[email protected]_@[email protected]_bufferutil@[email protected]_type_732bf6e1de1eb68be1ccb0e2f713f747/node_modules/@reown/appkit-controllers/dist/types/src/controllers/AdapterController/ChainAdapterBlueprint.d.ts:106

ParameterType
status"reconnecting" | "connected" | "disconnected" | "connecting" | undefined
chainNamespace?ChainNamespace

void

AdapterBlueprint.setStatus


setUniversalProvider(): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:380

Sets the universal provider for WalletConnect.

Promise<void>

AdapterBlueprint.setUniversalProvider


signMessage(_params): Promise<SignMessageResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:300

Sign message

ParameterType
_paramsSignMessageParams

Promise<SignMessageResult>

AdapterBlueprint.signMessage


switchNetwork(params): Promise<void>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:220

Switch network

ParameterType
paramsSwitchNetworkParams

Promise<void>

AdapterBlueprint.switchNetwork


syncConnection(params): Promise<ConnectResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:190

Sync connection

ParameterType
paramsSyncConnectionParams

Promise<ConnectResult>

AdapterBlueprint.syncConnection


syncConnections(_params): void | Promise<void>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:118

Sync connections

ParameterType
_paramsSyncConnectionsParams

void | Promise<void>

AdapterBlueprint.syncConnections


syncConnectors(): void | Promise<void>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:106

Sync connectors

void | Promise<void>

AdapterBlueprint.syncConnectors


walletGetAssets(): Promise<{ }>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:365

Promise<{ }>

AdapterBlueprint.walletGetAssets


writeContract(): Promise<WriteContractResult>

Defined in: packages/iso-filecoin-wallets/src/appkit.js:374

Write contract

Promise<WriteContractResult>

AdapterBlueprint.writeContract