Europe/Kyiv
Projects

CryptoWhale Tracker — Real-Time Monitoring of Large Crypto Wallets

March 1, 2026

CryptoWhale Tracker
CryptoWhale Tracker is an analytics dashboard that monitors specific high-value wallets (whales) in real time, stores their transactions in a database, and renders balance change charts. 🔗 crypto-whale-tracker-nine.vercel.app
🔗 check the GitHub repository for source code. Backend is built on NestJS with the following dependencies:
  • NestJS 11 — core framework
  • Prisma 6 — ORM for database access
  • viem 2 — library for blockchain interaction
  • @nestjs/schedule — task scheduling for transaction polling
Frontend is built on Next.js:
  • Next.js 16 + React 19
  • SWR — for real-time data fetching and caching
  • Tailwind CSS 4 — styling
  • Sonner — toast notifications for new transactions
The backend polls the blockchain on a set interval via viem, checks the balance of tracked wallets, and saves new transactions to the database through Prisma. The frontend uses SWR to regularly query the API and update the UI without a page reload.
// wallet.scheduler.ts
@Injectable()
export class WalletScheduler {
  constructor(private readonly walletService: WalletService) {}

  @Cron(CronExpression.EVERY_MINUTE)
  async trackWallets() {
    const wallets = await this.walletService.findAll();

    for (const wallet of wallets) {
      const balance = await this.walletService.fetchBalance(wallet.address);
      await this.walletService.saveSnapshot(wallet.id, balance);
    }
  }
}
import { createPublicClient, http, formatEther } from 'viem';
import { mainnet } from 'viem/chains';

const client = createPublicClient({
  chain: mainnet,
  transport: http(),
});

const balance = await client.getBalance({
  address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
});

console.log(formatEther(balance)); // '1234.56'
const { data: wallets, isLoading } = useSWR(
  '/api/wallets',
  fetcher,
  { refreshInterval: 30000 } // refresh every 30 seconds
);
# Backend
cd api
npm install
npx prisma migrate dev
npm run start:dev

# Frontend
cd web
npm install
npm run dev
This project demonstrates how to combine NestJS, Prisma, and viem to build a real blockchain monitoring tool. Scheduled tasks on the backend paired with SWR on the frontend make it possible to build live dashboards without WebSockets.