7
747 Docs
Docs/Getting Started

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

LayerTechnology
FrontendNext.js 14 (App Router)
Backend APINext.js API Routes
DatabasePostgreSQL
Cache / QueueRedis (ioredis)
AuthJWT + bcrypt
PaymentsNexusPay
DeploymentDocker / PM2
CronNode.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