> ## Documentation Index
> Fetch the complete documentation index at: https://zyfai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getUserDetails

Get current authenticated user details including smart wallet, chains, protocols, and settings. Requires SIWE authentication.

## Signature

```typescript theme={null}
getUserDetails(asset?: "USDC" | "WETH" | "EURC"): Promise<UpdateUserProfileResponse>
```

## Parameters

| Parameter | Type                         | Required | Description                                  |
| --------- | ---------------------------- | -------- | -------------------------------------------- |
| `asset`   | `"USDC" \| "WETH" \| "EURC"` | ❌        | Asset to get details for (default: `"USDC"`) |

## Returns

User profile including smart wallet, chains, protocols, and settings

## Return Type

```typescript theme={null}
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";
}
```

**Note:** This endpoint now returns `UpdateUserProfileResponse` which is shared with `updateUserProfile`.

## Example

```typescript theme={null}
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);
```
