Signature
Parameters
Returns
User profile including smart wallet, chains, protocols, and settingsReturn Type
UpdateUserProfileResponse which is shared with updateUserProfile.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
getUserDetails(asset?: "USDC" | "WETH" | "EURC"): Promise<UpdateUserProfileResponse>
| Parameter | Type | Required | Description |
|---|---|---|---|
asset | "USDC" | "WETH" | "EURC" | ❌ | Asset to get details for (default: "USDC") |
interface UpdateUserProfileResponse {
success: boolean;
smartWallet?: string;
chains?: number[];
strategy?: string;
protocols?: string[];
autoSelectProtocols?: boolean;
omniAccount?: boolean;
autocompounding?: boolean;
agentName?: string;
crosschainStrategy?: boolean;
executorProxy?: boolean;
hasActiveSessionKey?: boolean;
splitting?: boolean;
minSplits?: number;
customization?: Record<string, any>;
asset?: "USDC" | "WETH" | "EURC";
}
UpdateUserProfileResponse which is shared with updateUserProfile.
await sdk.connectAccount(privateKey, chainId);
// Get USDC settings (default)
const user = await sdk.getUserDetails();
console.log("Smart Wallet:", user.smartWallet);
console.log("Chains:", user.chains);
console.log("Has Active Session:", user.hasActiveSessionKey);
console.log("USDC Strategy:", user.strategy);
// Get WETH settings
const wethUser = await sdk.getUserDetails("WETH");
console.log("WETH Strategy:", wethUser.strategy);
// Get EURC settings
const eurcUser = await sdk.getUserDetails("EURC");
console.log("EURC Strategy:", eurcUser.strategy);