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
The ID of the wallet to get
Returns
wallet
WalletApiWalletResponseType
List of policy IDs associated with the wallet
The key quorum ID of the owner of the wallet.
The key quorum IDs of the additional signers for the wallet.
The creation date of the wallet
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
The ID of the wallet to get
Returns
wallet
WalletApiWalletResponseType
List of policy IDs associated with the wallet
The key quorum ID of the owner of the wallet.
The key quorum IDs of the additional signers for the wallet.
The creation date of the wallet
To get a wallet by ID, make a GET
request to:
https://api.privy.io/v1/wallets/[wallet-id]
Response
data
WalletApiWalletResponseType
The wallet object
List of policy IDs associated with the wallet
The key quorum ID of the owner of the wallet.
The key quorum IDs of the additional signers for the wallet.
The creation date of the wallet, in milliseconds since midnight, January 1, 1970 UTC.