TokensView

Component for displaying token balances.
1import { TokensView } from '@avalabs/avacloud-waas-react';
2
3function TokensSection() {
4 return (
5 <TokensView
6 onBack={() => {
7 // Handle back navigation
8 }}
9 onSend={(token) => {
10 // Handle token send action
11 console.log('Sending token:', token);
12 }}
13 />
14 );
15}

Props

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

Features

  • Displays token balances
  • Required back navigation functionality
  • Optional token sending functionality
  • Handles token state automatically
  • Supports both ERC20 and native tokens

For any additional questions, please view our other knowledge base articles or contact a support team member via the chat button. Examples are for illustrative purposes only.

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