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

TokensView

Component for displaying token balances.

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

function TokensSection() {
  return (
    <TokensView
      onBack={() => {
        // Handle back navigation
      }}
      onSend={(token) => {
        // Handle token send action
        console.log('Sending token:', token);
      }}
    />
  );
}

Props

interface TokensViewProps {
  onBack: () => void;  
  onSend?: (token: ERC20Token | NativeToken) => void; 
}

Features

  • Displays token balances

  • Required back navigation functionality

  • Optional token sending functionality

  • Handles token state automatically

  • Supports both ERC20 and native tokens

PreviousWalletCardNextSendView

Last updated 27 days ago

Was this helpful?

⚙️