Function Signature

getWallet(params: {
  accountAddress: string;
  password?: string;
}): Promise<Wallet>

Description

Retrieves detailed information about a specific EVM wallet by its account address. This function requires authentication and can optionally verify a password if the wallet is password-protected.

Parameters

Required Parameters

  • accountAddress (string) - The wallet address to retrieve (must include 0x prefix)

Optional Parameters

  • password (string) - Wallet password (if wallet is password-protected)

Returns

  • Promise<Wallet> - Detailed wallet information

Example

import { authenticatedEvmClient } from './client';

const evmClient = await authenticatedEvmClient();

const wallet = await evmClient.getWallet({
  accountAddress: '0xYourWalletAddress',
  password: 'optional-password',
});

console.log('Wallet details:', wallet);

Error Handling

try {
  const wallet = await evmClient.getWallet({
    accountAddress: '0xYourWalletAddress',
  });
  console.log('Wallet retrieved successfully');
} catch (error) {
  console.error('Failed to retrieve wallet:', error);
}