Skip to content
Richard Fu edited this page Jan 3, 2026 · 4 revisions

Stake Engine Client Wiki

Welcome to the comprehensive documentation for the Stake Engine Client - a lightweight TypeScript client for RGS (Remote Gaming Server) API communication.

📚 Documentation Index

Getting Started

API Reference

Replay Mode

Advanced Usage

Examples & Guides

Troubleshooting

🔥 Key Features

  • 🚀 Lightweight - Only essential RGS communication code
  • 📱 Framework Agnostic - Works with any JavaScript framework
  • 🔒 Type Safe - Full TypeScript support with auto-generated types
  • 🎯 Simple API - High-level methods for common operations
  • 🔧 Configurable - Low-level access for custom implementations
  • 💰 Smart Conversion - Automatic amount conversion between formats
  • 🌐 Browser Friendly - URL parameter fallback for easy integration
  • 🔄 Replay Support - Fetch and replay historical bet data

📦 Installation

npm install stake-engine-client

🚀 Quick Example

import { authenticate, play } from 'stake-engine-client';

// Authenticate (uses URL params if available)
const auth = await authenticate();

// Play a round
const result = await play({
  currency: 'USD',
  amount: 1.00,
  mode: 'base'
});

console.log('Round ID:', result.round?.roundID);
console.log('Payout:', result.round?.payoutMultiplier);

🔗 Links

📄 License

MIT License - see the LICENSE file for details.


Need help? Check the Common Issues page or create an issue on GitHub.

Clone this wiki locally