Platform Architecture
PNL Games is engineered for real-time performance, competitive integrity, and smooth scalability — all built natively on Solana.
Real-Time Wallet Tracking
PNL Games uses Helius RPC Geyser WebSocket subscriptions to listen for on-chain activity from individual player wallets. This allows the platform to monitor trades, wallet balances, and token interactions with minimal latency, ensuring a real-time competitive experience.
Every registered game wallet is subscribed individually
Updates to leaderboard data are streamed live as trades happen
All trades are verified against our token filter and rules engine
Token Filtering: Pump AMMs Only
To maintain fair and consistent gameplay, PNL Games only tracks tokens launched via pump.fun. This ensures that all participants are trading from the same ecosystem under the same conditions — no random tokens, no off-meta pairs, no exploits.
We only track pump fun program ids, so only coins minted on the pump platform are tracked. These are the exact ones we track:
const PROGRAM_IDS = { // Essential PumpFun programs for token creation and minting PUMP_FUN_TOKEN_MINT_AUTH: 'TSLvdd1pWpHVjahSpsvCXUbgwsL3JAcvokwaKt1eokM',
// Current PumpFun AMM system PUMP_FUN_ROUTER: 'BSfD6SHZigAfDWSjzD5Q41jw8LmKwtmjskPH9XW1mrRW', PUMP_FUN_AMM_IMPL: 'pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA',
// Helper service used by PumpFun for API integration BLOXROUTE_API: 'HQ2UUt18uJqKaQFJhgV9zaTdQxUZjNrsKFgoEDquBkcx',
// Pump.fun bonding curve program ID PUMP_FUN_BONDING_CURVE: '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P',
// Raydium AMM program ID RAYDIUM_AMM: '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8' };
Stack Overview
PNL Games is powered by a lightweight, high-speed architecture built to scale with demand:
Frontend: Built with Next.js for high-performance rendering and seamless user experience across desktop and mobile
Backend: Powered by Node.js and Express for REST and real-time API handling
WebSocket Layer: A custom Socket.IO server delivers real-time updates between backend processes and the front-end leaderboard
This architecture allows for high-speed responsiveness, fair tracking, and a seamless player experience — all while remaining flexible for future features like multi-pot games, smart contract automation, and cross-chain expansion.
Last updated