AvaCloud API
AvaCloud App
AvaCloud Wallet as a Service
AvaCloud Wallet as a Service
  • AvaCloud Wallet as a Service SDK
  • 🚀Getting Started
    • Quickstart
  • ⚙️USAGE
    • 🪝Hooks
      • useAvaCloudWallet
      • useAuth
      • useSignMessage
      • useSignTransaction
      • useTransferTokens
      • useUserWallets
      • useChainId
    • UI Components
      • LoginButton
      • WalletButton
      • WalletDisplay
      • UserProfile
      • WalletCard
      • TokensView
      • SendView
      • ReceiveView
      • ExportView
    • 🛠️Advanced Usage
Powered by GitBook

© 2025 Ava Labs, Inc.

On this page

Was this helpful?

  1. USAGE
  2. Hooks

useUserWallets

Hook for managing multiple wallets associated with a user.

import { useUserWallets } from '@avalabs/avacloud-waas-react';

function WalletManager() {
  const {
    wallets,
    isLoading,
    error
  } = useUserWallets();
  
  if (isLoading) return <div>Loading wallets...</div>;
  if (error) return <div>Error loading wallets</div>;

  return (
    <div>
      {wallets.map(wallet => (
        <div key={wallet.address}>
          {wallet.address}
        </div>
      ))}
    </div>
  );
}

Returns

  • wallets: Wallet[] - Array of user's wallets

  • isLoading: boolean - Loading state

  • error: Error | null - Error state if wallet fetching fails

PrevioususeTransferTokensNextuseChainId

Last updated 28 days ago

Was this helpful?

⚙️
🪝