pluginManagerActions

1function pluginManagerActions<TTransport, TChain, TAccount>(
2 client,
3): PluginManagerActions<TAccount>;

Defined in: account-kit/smart-contracts/dist/types/src/msca/plugin-manager/decorator.d.ts:26

Provides actions for managing plugins on a given client, including installing and uninstalling plugins. NOTE: this is provided by default when using a modular account client

Example

1import { pluginManagerActions } from "@account-kit/smart-contracts";
2import { createSmartAccountClient } from "@aa-sdk/core";
3
4const client = createSmartAccountClient(...).extend(pluginManagerActions);

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends undefined | Chain

undefined | Chain

TAccount extends undefined | SmartContractAccount

undefined | SmartContractAccount

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

The client instance on which to manage plugins

Returns

PluginManagerActions<TAccount>

An object containing functions to install and uninstall plugins