Transfer Callbacks#
This document details the callback operations related to transfer functionality in the CopperX Payout Bot.Transfer Callback Overview#
Transfer callbacks enable users to interact with the transfer system, allowing them to view transaction history, send funds, withdraw to external wallets, and more.Available Transfer Callbacks#
| Callback | Description | Parameters | Authentication | KYC |
|---|
transfer_list | Show transfer list | None | Required | Required |
transfer_details:id | Show transfer details | Transfer ID | Required | Required |
transfer_send | Initiate send process | None | Required | Required |
transfer_withdraw | Initiate withdraw process | None | Required | Required |
transfer_batch | Initiate batch transfer | None | Required | Required |
transfer_offramp | Initiate offramp transfer | None | Required | Required |
transfer_next_page:page | Go to next page of transfers | Page number | Required | Required |
transfer_prev_page:page | Go to previous page of transfers | Page number | Required | Required |
transfer_back | Return to transfer menu | None | Required | Required |
send_by_email | Send by email | None | Required | Required |
send_by_wallet | Send by wallet address | None | Required | Required |
send_confirm | Confirm transfer | None | Required | Required |
send_cancel | Cancel transfer | None | Required | Required |
transfer_currency:currency | Select currency | Currency code | Required | Required |
transfer_purpose:purpose | Select purpose | Purpose code | Required | Required |
Transfer List Callback#
Purpose: Display a paginated list of the user's transfers.๐ Your Transfers (Page 1/3)
Select a transfer to view details:
Transfer Details Callback#
Purpose: Show detailed information about a specific transfer.๐งพ Transfer Details
ID: abc123def456
Status: success
Amount: 100.00 USDT
Fee: 1.50 USDT
Date: 3/15/2023, 2:30:45 PM
Type: send
Destination: 0x1234...5678
Transaction Hash: 0xabcd...efgh
Send By Email Callback#
Purpose: Set up a transfer to be sent via email address.๐ง Send by Email
Please enter the recipient's email address:
Send By Wallet Callback#
Purpose: Set up a transfer to be sent via wallet address.๐ Send by Wallet Address
Please enter the recipient's wallet address:
Send Confirm Callback#
Purpose: Execute the transfer after user confirmation.โ
Transfer Successful!
You have sent 100 USDT to recipient@example.com.
Send Cancel Callback#
Purpose: Cancel the current transfer process.Transfer cancelled. What would you like to do next?
Transfer Withdraw Callback#
Purpose: Initialize the process to withdraw funds to an external wallet.๐ค Withdraw to External Wallet
Please enter the destination wallet address:
Batch Transfer Callback#
Purpose: Initialize the process to send funds to multiple recipients at once.๐ฆ Batch Transfer
Batch transfers allow you to send funds to multiple recipients at once.
1. Download the template CSV file
2. Fill in recipient emails/addresses and amounts
3. Upload the completed file to this chat
src/bot/handlers/transfer.handler.ts - Contains transfer callback handlers
src/services/transfer.service.ts - Service for transfer operations
src/utils/copperxApi/copperxApi.transfers.ts - API client for transfer operations
src/bot/messages/transfer.messages.ts - Message templates for transfers
src/constants/callback.enum.ts - Defines transfer callback enum values
Modified atย 2025-03-23 17:14:15