Earn 7,200 ($72.00)
Discord.js MiddleMan Bot
Bounty Description
Replit Bounty: Discord Middleman Escrow Bot with Litecoin Payments
Description: I need a middleman bot for Discord that facilitates escrow transactions in Litecoin (LTC) between buyers and sellers. The bot should securely hold funds sent by the buyer and only release them to the seller once both parties confirm the transaction. This bot will handle key functionalities like initiating transactions, tracking payments, managing escrow status, and releasing funds.
Requirements:
Core Bot Functions:
Transaction Initialization:
Command for buyers to start a transaction (!buy
@Seller ).Bot DM’s the buyer with a unique LTC wallet address for payment.
Transaction details should be stored securely in a database (e.g., buyer, seller, amount, payment address).
Payment Tracking:
Use a crypto payment processor API (CoinPayments, NOWPayments, etc.) to generate unique wallet addresses and monitor incoming payments.
Listen for payment confirmations via webhooks, updating the transaction status when payment is confirmed.
Escrow Management:
Command for both buyer and seller to confirm the deal completion.
When both parties confirm, the bot releases funds to the seller’s Litecoin wallet address.
If the buyer or seller cancels, follow refund protocols.
Security and Compliance:
Securely verify webhook data (HMAC or other verification).
Proper encryption and storage for sensitive data.
Ensure that wallet addresses and transaction data are securely handled.
Additional Bot Commands:
!status <transaction_id>: Check the status of a transaction.
!cancel <transaction_id>: Allows buyer/seller to cancel if no payment is made.
!confirm <transaction_id>: Command to confirm the deal completion by both buyer and seller.
Technical Requirements:
Use Discord.js for bot functionality.
Use CoinPayments or a similar API for generating and tracking payments in LTC.
Express.js server (or similar) to handle webhook events from the payment processor.
Database (e.g., SQLite or MongoDB) for storing transaction data.
Skills Needed:
Proficiency in JavaScript (Node.js, Discord.js).
Familiarity with cryptocurrency payments and APIs.
Experience with webhooks, Express.js, and secure data handling.
Deliverables:
Full bot code with all functionalities implemented.
Documentation for setup and configuration, including how to set up API keys, webhooks, and database.
Testing instructions to verify bot functionality in a test server.