> ## 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.

# getActiveWallets

Get active wallets for a specific chain.

## Signature

```typescript theme={null}
getActiveWallets(chainId: number): Promise<ActiveWalletsResponse>
```

## Parameters

| Parameter | Type     | Required | Description                |
| --------- | -------- | -------- | -------------------------- |
| `chainId` | `number` | ✅        | Chain ID to filter wallets |

## Returns

List of active wallets on the specified chain

## Return Type

```typescript theme={null}
interface ActiveWalletsResponse {
  success: boolean;
  chainId: number;
  wallets: ActiveWallet[];
  count: number;
}
```

## Example

```typescript theme={null}
const wallets = await sdk.getActiveWallets(8453); // Base
console.log("Active wallets:", wallets.count);
wallets.wallets.forEach(w => console.log(w.smartWallet));
```
