parseFactoryAddressFromAccountInitCode

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

Import

1import { parseFactoryAddressFromAccountInitCode } from "@aa-sdk/core";

Usage

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

Parameters

initCode

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

Returns

[Address, Hex] A tuple containing the parsed factory address and factory calldata