Function Signature

getEvmWallets(): Promise<Wallet[]>

Description

Retrieves all EVM wallets for the authenticated user. This function returns an array of EVM wallet objects containing information about all Ethereum wallets associated with the current user. It filters wallets by chainName === ‘eip155’.

Parameters

None

Returns

  • Promise<Wallet[]> - Array of EVM wallet objects

Example

import { authenticatedEvmClient } from './client';

const evmClient = await authenticatedEvmClient();

const evmWallets = await evmClient.getEvmWallets();
console.log('EVM wallets:', evmWallets);

Response Format

// Uses the same Wallet interface as getWallets()
interface Wallet {
  walletId: string;
  chainName: string;
  accountAddress: string;
  serverKeySharesBackupInfo: KeyShareBackupInfo;
  externalServerKeyShares: ServerKeyShare[];
  derivationPath?: string;
  thresholdSignatureScheme: ThresholdSignatureScheme;
}

Error Handling

try {
  const evmWallets = await evmClient.getEvmWallets();
  console.log('EVM wallets retrieved:', evmWallets.length);
} catch (error) {
  console.error('Failed to retrieve EVM wallets:', error);
}