API Methods

The Stake Engine RGS exposes a set of HTTP endpoints for wallet operations, game events, and bet replay. All wallet endpoints require a valid sessionID obtained from the operator platform.

Base URL: https://rgs.stake-engine.com

Endpoints

MethodPathDescription
POST/wallet/authenticateValidate a session and retrieve balance, game config, and jurisdiction settings.
POST/wallet/balanceRetrieve the player’s current balance.
POST/wallet/playInitiate a game round and debit the bet amount.
POST/wallet/end-roundComplete a round and trigger payout.
POST/bet/eventTrack in-progress player actions during a round.
GET/bet/replay/{game}/{version}/{mode}/{event}Fetch replay data for a completed round.

Authentication

All wallet endpoints (/wallet/*) and the event endpoint (/bet/event) require a sessionID in the request body. This session ID is issued by the operator platform and must be validated via the Authenticate endpoint before calling any other endpoint.

Calling wallet endpoints without first authenticating will return ERR_IS (Invalid Session).

Response Codes

Stake Engine uses standard HTTP response codes with specific error codes for client and server errors.

400 - Client Errors

Error CodeDescription
ERR_VALInvalid Request
ERR_IPBInsufficient Player Balance
ERR_ISInvalid Session Token / Session Timeout
ERR_ATEFailed User Authentication / Token Expired
ERR_GLEGambling Limits Exceeded
ERR_LOCInvalid Player Location

500 - Server Errors

Error CodeDescription
ERR_GENGeneral Server Error
ERR_MAINTENANCERGS Under Planned Maintenance

Currency Units

All monetary values are expressed in minor currency units. For example, with USD using 6 decimal places of precision, 1000000 equals $1.00.