getSmartAccountAddress FromInitialSigner
Function to deterministically derive the deployed Abstract Global Wallet smart account address from the initial signer account.
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
The EOA account/signer that will be the owner of the AGW smart contract wallet.
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.
Was this page helpful?