Skip to content

getDefaultSimpleAccountFactoryAddress

Utility method that returns the default Simple Account Factory contract address for a given chain

Usage

ts
import { sepolia } from "@alchemy/aa-core";
import { getDefaultSimpleAccountFactoryAddress } from "@alchemy/aa-core";

const chain = sepolia;
const factoryAddress = getDefaultSimpleAccountFactoryAddress(chain);

Returns

Address

The Address of the default Simple Account Factory contract address for the input chain

Paramaters

chain: Chain

The chain to get the default Simple Account Factory address for