accountLoupeActions

1const accountLoupeActions: <TTransport, TChain, TAccount>(
2 client,
3) => AccountLoupeActions<TAccount>;

Defined in: account-kit/smart-contracts/src/msca/account-loupe/decorator.ts:69

Provides a set of actions for account loupe operations using the specified client. NOTE: this is already added to the client when using any of the Modular Account Clients.

Example

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

Type Parameters

Type ParameterDefault type

TTransport extends Transport

Transport

TChain extends Chain | undefined

Chain | undefined

TAccount extends SmartContractAccount | undefined

SmartContractAccount | undefined

Parameters

ParameterTypeDescription

client

Client<TTransport, TChain, TAccount>

the client to be used for executing the account loupe actions

Returns

AccountLoupeActions<TAccount>

an object containing account loupe actions like getExecutionFunctionConfig, getExecutionHooks, getPreValidationHooks, and getInstalledPlugins