AvaCloud
UsageHooks

useUserWallets

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

If you need more help, explore our other articles or reach out to our support team via chat or email support@avacloud.io. All examples provided are for demonstration purposes only.

Learn More About AvaCloud | Download Case Studies | Schedule an AvaCloud Demo

On this page