SendView

Component for sending tokens.
1import { SendView } from '@avalabs/avacloud-waas-react';
2
3function SendSection() {
4 return (
5 <SendView
6 onBack={() => {
7 // Handle back navigation
8 }}
9 onViewStateChange={(state) => {
10 // Handle view state changes
11 console.log('View state:', state);
12 }}
13 selectedToken={token} // Optional, pre-select a token to send
14 />
15 );
16}

Props

1interface SendViewProps {
2 onBack: () => void;
3 onViewStateChange?: (state: ViewState) => void;
4 selectedToken?: ERC20Token | NativeToken;
5}

Features

  • Token sending interface
  • Required back navigation functionality
  • Optional view state tracking
  • Pre-selection of token support
  • Handles both ERC20 and native tokens
  • Transaction state management

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