AvaCloud

TokensView

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

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