Stake Enginestakeengine

API Documentation

The Development Kit is a complete toolkit for designing, simulating, and tuning slot games. Solo builders and studio teams alike can use the SDK to turn a game concept into a finished product with accuracy and speed. Through the Carrot Remote Gaming Server (RGS), titles integrate with stakeengine.org and ship in a way that stays smooth as you grow.

What the SDK Provides

The SDK is an optional package that covers in-browser game rendering on the client and produces static files that hold every possible game result.

  1. Math Framework: A Python engine for writing game rules, simulating results, and shaping win distributions. It produces the backend and config files, lookup tables, and simulation output you need.
  2. Frontend Framework: A PixieJS/Svelte toolkit for building visually rich slot games. It lines up with the math engine's output so game logic and what players see stay in sync.

Stake Engine Game Format Criteria

For verification, testing, and security, games uploaded to Stake Engine must be static files. Teams using their own frontend and/or math stack may still upload compatible formats through the Admin Control Panel (ACP). Every possible outcome must live inside compressed game files, usually split by mode. Each outcome maps to a CSV row that records one game round by simulation number, selection probability, and final payout multiplier. When a betting round starts, a simulation number is chosen in proportion to its weight, and the matching events come back in the /play API response.

[RGS diagram image placeholder]