You can get a specific wallet by its ID from the Privy API.

Note this is a wallet-centric abstraction. You may be looking for a way to find a given user’s wallets.

To get a wallet by ID, use the getWallet method.

getWallet: ({id}: {id: string}) => Promise<WalletApiWalletResponseType>

Usage

const wallet = await client.walletApi.getWallet({id: walletId});

Parameters

id
string

The ID of the wallet to get

Returns

wallet
WalletApiWalletResponseType