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. UI Components

WalletDisplay

Component for displaying wallet address and balance.

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

function WalletInfo() {
  return (
    <WalletDisplay
      className="custom-class" // Optional custom class
      truncateAddress={true} // Optional, truncates the address for better display
      showAddAccount={true} // Optional, shows the add account button
    />
  );
}

Props

interface WalletDisplayProps {
  className?: string;        
  truncateAddress?: boolean; 
  showAddAccount?: boolean;  
}

Features

  • Displays wallet address (with optional truncation)

  • Shows wallet balance

  • Optional add account button

  • Customizable styling through className

  • Handles wallet state automatically

PreviousWalletButtonNextUserProfile

Last updated 27 days ago

Was this helpful?

⚙️