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
| Parameter | Type | Required | Description |
|---|---|---|---|
userAddress | string | ✅ | User's EOA address |
chainId | SupportedChainId | ✅ | Target 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);