Skip to content
Alchemy Logo

getModularAccountV2AddressFromFactoryData

function getModularAccountV2AddressFromFactoryData(
  params,
): Promise<`0x${string}`>;

Defined in: packages/smart-accounts/src/ma-v2/predictAddress.ts:151

Gets the modular account v2 address from factory data. If the factory is a known default (SMA), decodes the args and predicts without RPC. Otherwise falls back to calling the entry point's getSenderAddress.

ParameterTypeDescription

params

GetModularAccountV2AddressFromFactoryDataParams

The parameters

Promise<`0x${string}`>

The account address

Was this page helpful?