← All projects

2024-2025 · Commercial (Discontinued)

Escrow Middleman Bot

A Discord bot that acts as an automatic middleman for crypto deals. It holds Litecoin in escrow between a buyer and seller, watches the blockchain, and only releases funds when both sides are happy.

  • Python
  • discord.py
  • BlockCypher (LTC)
  • CoinGecko
  • ~2,900 lines
01

Escrow, done by a bot

Trading with a stranger online is risky. Who sends first? The classic fix is a middleman - a trusted person who holds the money until both sides are happy. I turned that whole job into a bot.

A user opens a deal from a panel and fills in the details. The bot creates a private thread for just the two people, generates a fresh Litecoin escrow address, and shows a QR invoice with live LTC/USD pricing. Then it watches the blockchain until the payment arrives. Now the money is safe with the bot - not with either person.

  • A fresh Litecoin escrow wallet for every single deal
  • QR invoices with live LTC/USD pricing
  • Blockchain monitoring - detects deposits and waits for confirmations
  • A private per-deal thread so only the two traders can talk
02

Release, protect, and keep records

When the deal is done, both sides confirm - and only then does the bot send the funds on-chain to the receiver, minus the network fee, with a link to the transaction. If something is off, an admin can hold or cancel a deal, and there is even a recovery panel to reclaim a paid deal if the server ever goes down.

It also handles the boring-but-important parts: a different Terms of Service for each kind of trade, star reviews and a reputation leaderboard so good traders stand out, and full HTML transcripts of every deal for records. It is about 2,900 lines, with around 18 button-and-modal screens holding it all together.

  • Two-sided confirmation before any funds move on-chain
  • A separate Terms of Service for each type of trade
  • Star reviews, profiles and a trading leaderboard
  • HTML deal transcripts and a deal-recovery panel