Skip to main content

getSmartWalletAddress

Get the deterministic Smart Wallet (Safe) address for a user. Returns address and deployment status.

Signature

getSmartWalletAddress(userAddress: string, chainId: SupportedChainId): Promise<SmartWalletResponse>

Parameters

ParameterTypeRequiredDescription
userAddressstringUser's EOA address
chainIdSupportedChainIdTarget chain ID (8453, 42161, or 9745)

Returns

Smart wallet address and deployment status

Return Type

interface SmartWalletResponse {
address: Address;
isDeployed: boolean;
}

Example

const wallet = await sdk.getSmartWalletAddress("0xUser...", 42161);
console.log("Safe address:", wallet.address);
console.log("Is deployed:", wallet.isDeployed);