Skip to main content
Get all wallets for your application.
  • NodeJS
  • NodeJS (server-auth)
  • Java
  • REST API
  • Rust
To fetch all your application’s wallets, use the Privy client’s walletApi.getWallets method. This is a paginated query.
getWallets: ({cursor?: string, limit?: number, chainType?: 'ethereum' | 'solana'}) => Promise<{data: WalletApiWalletResponseType[], nextCursor?: string}>

Usage

// Will iterate automatically until all wallets are fetched
for await (const wallet of privy.wallets().list({chain_type: 'ethereum'})) {
    // Do something with the wallet
}

Parameters and Returns

Check out the API reference for more details.
I