CoinFlip Event API

API Endpoints

  • GET /api/flips/recent- Get last 20 completed flips
  • GET /api/flips/user/[address]- Get all flips for a specific user
  • GET /api/stats- Get contract balance and total volume statistics

API running on: http://localhost:3090

Event Listener

Run the event listener with: npm run listener