Alchemy Logo

parseFactoryAddressFromAccountInitCode

function parseFactoryAddressFromAccountInitCode(
  initCode,
): [`0x${string}`, `0x${string}`];

Defined in: aa-sdk/core/src/account/smartContractAccount.ts:189

Parses the factory address and factory calldata from the provided account initialization code (initCode).

import { parseFactoryAddressFromAccountInitCode } from "@aa-sdk/core";
 
const [address, calldata] =
  parseFactoryAddressFromAccountInitCode("0xAddressCalldata");

ParameterTypeDescription

initCode

`0x${string}`

The initialization code from which to parse the factory address and calldata

[`0x${string}`, `0x${string}`]

A tuple containing the parsed factory address and factory calldata

Was this page helpful?