Skip to main content
Use the getSmartAccountAddressFromInitialSigner function to get the smart contract address of the Abstract Global Wallet that will be deployed given an initial signer account. This is useful if you need to know what the address of the Abstract Global Wallet smart contract will be before it is deployed.

Import

Usage

Parameters

Address
required
The EOA account/signer that will be the owner of the AGW smart contract wallet.
PublicClient
required
A public client connected to the desired chain (e.g. abstractTestnet).

Returns

Returns a Hex: The address of the AGW smart contract that will be deployed.

How it works

The smart account address is derived from the initial signer using the following process:
This function returns the determined AGW smart contract address using the Contract Deployer’s getNewAddressForCreate2 function.