Skip to content
Alchemy Logo

DefaultFactoryNotDefinedError

Defined in: aa-sdk/core/src/errors/account.ts:38

Represents an error that is thrown when no default factory is defined for a specific account type on a given chain and entry point version. This error suggests providing an override via the factoryAddress parameter when creating an account.

new DefaultFactoryNotDefinedError(
   accountType,
   chain,
   version): DefaultFactoryNotDefinedError;

Defined in: aa-sdk/core/src/errors/account.ts:48

Constructs an error message indicating that no default factory was found for the given account type, chain, and entry point version.

Parameters

ParameterTypeDescription

accountType

string

the type of account

chain

Chain

the blockchain chain

version

keyof EntryPointRegistryBase<unknown>

the entry point version

Returns

DefaultFactoryNotDefinedError

Overrides

BaseError.constructor

PropertyTypeDefault value

name

string

"DefaultFactoryNotDefinedError"

version

string

VERSION

Was this page helpful?