transfer
/transfer and /send Commands
/transfer
command provides access to all transfer-related features, including viewing transfer history and initiating new transfers. The /send
command is a shortcut to the "Send Funds" functionality.Command Overview
src/bot/handlers/transfer.handler.ts
src/services/transfer.service.ts
Features
1.
2.
3.
4.
5.
6.
Transfer Flows
Main Transfer Menu Flow
/transfer → Transfer Operations Menu →
→ List Transfers
→ Send Funds
→ Withdraw to Wallet
→ Batch Transfer
→ Offramp Transfer
Send Funds Flow
/send or "Send Funds" →
→ Send by Email or Send by Wallet Address →
→ Enter Recipient →
→ Enter Amount →
→ Select Currency →
→ Select Purpose →
→ Confirm Transfer
List Transfers Flow
"List Transfers" → View Transfers List → Select Transfer → View Transfer Details
Response Examples
Transfer Operations Menu
💸 Transfer Operations
Choose an operation:
Send Funds Initial Screen
💸 Send Funds
How would you like to send funds?
Enter Amount Screen
💰 Enter Amount
Please enter the amount you want to send to recipient@example.com:
Select Currency Screen
💱 Select Currency
Please select the currency:
Confirm Transfer Screen
✅ Confirm Transfer
You are about to send:
Amount: 100 USDT
To: recipient@example.com
Purpose: PAYMENT
Do you want to proceed?
Transfer List
📋 Your Transfers (Page 1/3)
Select a transfer to view details:
Implementation Details
Transfer Command Handler
Multi-step Send Flow
Transfer Service Integration
TransferService
to perform operations:
Transfer Data Structures
Session States for Transfer Flow
UserState.AWAITING_RECIPIENT_EMAIL
: Waiting for recipient emailUserState.AWAITING_WALLET_ADDRESS
: Waiting for recipient wallet addressUserState.AWAITING_AMOUNT
: Waiting for transfer amountUserState.AWAITING_CURRENCY
: Waiting for currency selectionUserState.AWAITING_PURPOSE
: Waiting for purpose selectionUserState.AWAITING_CONFIRMATION
: Waiting for transfer confirmationInput Validation
/^[^\s@]+@[^\s@]+\.[^\s@]+$/
Error Handling
Related Files
src/bot/messages/transfer.messages.ts
- Contains transfer message templatessrc/services/transfer.service.ts
- Service for transfer operationssrc/utils/copperxApi/copperxApi.transfers.ts
- API client for transfer operationssrc/types/transfers.types.ts
- Transfer data type definitionsBest Practices
Modified at 2025-03-23 17:07:55