Skip to main content

getActiveWallets

Get active wallets for a specific chain.

Signature

getActiveWallets(chainId: number): Promise<ActiveWalletsResponse>

Parameters

ParameterTypeRequiredDescription
chainIdnumberChain ID to filter wallets

Returns

List of active wallets on the specified chain

Return Type

interface ActiveWalletsResponse {
success: boolean;
chainId: number;
wallets: ActiveWallet[];
count: number;
}

Example

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