Function Signature

getEvmWallets(): Promise<EvmWallet[]>

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.

Parameters

None

Returns

  • Promise<EvmWallet[]> - 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

interface EvmWallet {
  id: string;
  accountAddress: string;
  chainName: string;
  // ... other EVM wallet properties
}

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);
}