Overview
The Agent Ledger is a multi-tenant SaaS platform that automates operations for Agent Ledger agents. It handles deposits, withdrawals, player management, shift tracking, and payment processing through NexusPay.
Architecture
Client Tier
Admin Dashboard
Next.js App Router
NexusPay Checkout
Payment UI
Merchant Sites
3rd-party integrations
HTTPS / JWT
API Tier
/wapi/*
Webapp API routes
/api/*
Agent / Cron API
NexusPay API
Merchant endpoints
Data Tier
PostgreSQL
Primary database
Redis
Cache & rate limits
Agent Ledger API
External platform
Tech Stack
| Layer | Technology |
|---|---|
| Frontend | Next.js 14 (App Router) |
| Backend API | Next.js API Routes |
| Database | PostgreSQL |
| Cache / Queue | Redis (ioredis) |
| Auth | JWT + bcrypt |
| Payments | NexusPay |
| Deployment | Docker / PM2 |
| Cron | Node.js cron workers |
Platform Features
Multi-tenant agent management with role-based access
Automated deposit and withdrawal processing
Loader shift management with clock-in/out and reconciliation
NexusPay payment gateway with merchant checkout
Player tracking and rebate analytics
Multiple 747 agent account connections (bridges)
Real-time transaction monitoring and audit logging
Webhook integrations for payment notifications
White-label branding per tenant
Comprehensive reporting and shift reconciliation
Rate limiting and security hardening
Mobile-responsive admin dashboard
Explore the Docs
Quick Start Guide
Set up your first agent account and process a transaction
Architecture Deep Dive
System design, data flow, and infrastructure details
NexusPay Integration
Payment gateway setup and merchant API
Merchant API Reference
REST endpoints for payment automation
Security Overview
Authentication, encryption, and VAPT findings
Full API Reference
Complete endpoint documentation