DEV Community

TateLyman
TateLyman

Posted on

7 Revenue Streams in a Single Node.js Telegram Bot

Revenue Architecture

My Solana trading bot generates revenue from 7 different streams — all in a single Node.js file.

1. Trading Fees (1%)

Every swap takes a 1% fee, extracted before execution.

2. Premium Subscriptions (0.1 SOL/month)

Premium users get 0.5% fees. Verified on-chain.

3. Token Promotions

Projects pay to promote their token to bot users.

4. Volume Bot

Projects use /bump to generate organic trading volume.

5. Alpha Signals (0.05 SOL/24h)

Paid early trading signals.

6. Tips

Direct tips from users.

7. Referral Program

3-tier referral system — earn from your referrals and their referrals.

Key Pattern

async function sendFee(userId, amountSOL) {
  const feeRate = isPremium(userId) ? 0.005 : 0.01;
  const fee = amountSOL * feeRate;
  await transferSOL(userWallet, FEE_WALLET, fee);
  return amountSOL - fee;
}
Enter fullscreen mode Exit fullscreen mode

The fee is extracted before the swap executes, so there's zero risk of non-payment.

Full Source

4,500 lines, all 7 revenue streams included:
devtools-site-delta.vercel.app/sol-bot-source

Free bot: @solscanitbot

Top comments (0)