Technical task: Automation of USDT (TRC20) transaction processing
Problem
USDT arrives at the generated address (TRC20), but further automatic transaction processing is absent. It is necessary to set up an automation mechanism that:
1. Monitors the receipt of funds.
2. Transfers funds from intermediate addresses to the main wallet.
3. Distributes part of the funds according to the terms of the referral program.
Task
1. Transaction monitoring:
• Implement verification of USDT receipts to generated TRC20 addresses.
• Record all incoming transactions in the database with statuses:
• “Pending” (address generated, funds not yet received).
• “Completed” (funds received and processed).
• “Error” (in case of failures).
2. Automatic transfer to the main wallet:
• Transfer the entire amount from each generated address to the main wallet.
• Log successful and failed transfers.
3. Distribution of funds according to the referral program:
• Send a percentage (configurable by the administrator) to the TRC20 wallet address of the referrer (if the referral link exists).
• Consider the remaining amount for the main wallet.
4. Processing logic:
• Transaction validation (correctness of the amount, confirmation in the TRC20 network).
• Establish statuses for all operations:
• “Successfully processed”.
• “Transfer error” (with detailed reason).
Technical requirements
1. API for working with TRC20:
• Integration with TronGrid API (or equivalent).
• Functions:
• Address generation.
• Monitoring balance and transactions.
• Executing transfers.
2. Programming language:
• Python, Node.js or another by agreement.
3. Database:
• PostgreSQL, MySQL or another for storage:
• Transaction data.
• User information and referral links.
4. Security:
• Store private keys in encrypted form.
• Use SSL for all requests.
Result requirements
1. The system must:
• Automatically process all incoming transactions.
• Transfer funds to the main wallet and referral wallets.
2. Operation log:
• Log all events (receipts, transfers, errors).
3. Documentation:
• Provide a brief description of API and database settings.
Deadlines
• Implementation: 5-7 working days.
• Testing: 2 working days.
Contacts
Describe how to contact for clarification of details (Telegram, email, etc.).