Skip to content
Alchemy Logo

isModularAccountV2

function isModularAccountV2(account): account is ModularAccountV2Base;

Defined in: packages/smart-accounts/src/ma-v2/utils/account.ts:128

Checks if an account is a ModularAccountV2.

ParameterTypeDescription

account

SmartAccount

The account to check.

account is ModularAccountV2Base

True if the account is a ModularAccountV2, false otherwise.

Was this page helpful?