You can get a specific wallet by its ID from the Privy API using server-auth or our REST 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.wallets.getWallet({id: walletId});

Parameters

id
string

The ID of the wallet to get

Returns

wallet
WalletApiWalletResponseType
id
string

Unique ID of the wallet

chainType
'ethereum' | 'solana'

Chain type of the wallet

address
string

Address of the wallet

policyIds
string[]

List of policy IDs associated with the wallet

createdAt
Date

The creation date of the wallet