Skip to content
Alchemy Logo

LightAccountAbi

type LightAccountAbi<TAccountType, TAccountVersion> =
  TAccountVersion extends keyof (typeof AccountVersionRegistry)[TAccountType]
    ? (typeof AccountVersionRegistry)[TAccountType][TAccountVersion] extends StaticSmartAccountImplementation
      ? (typeof AccountVersionRegistry)[TAccountType][TAccountVersion]["accountAbi"]
      : never
    : never;

Defined in: packages/smart-accounts/src/light-account/registry.ts:86

Type Parameter

TAccountType extends LightAccountType

TAccountVersion extends LightAccountVersion<TAccountType>

Was this page helpful?