parseFactoryAddressFromAccountInitCode

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

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

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

Example

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

Parameters

ParameterTypeDescription

initCode

`0x${string}`

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

Returns

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

A tuple containing the parsed factory address and factory calldata