When do I need to call end-round?

The RGS automatically completes rounds that result in zero winnings. Only rounds with a non-zero payout require an explicit call to /wallet/end-round.

After /wallet/play

When you send a /wallet/play request, the response contains the round result including the payout amount. What happens next depends on the payout:

  • Payout = 0 - The round is already completed. The RGS automatically finishes it since there is nothing to pay out. You do not need to call /wallet/end-round.
  • Payout > 0 - The round remains active. You must call /wallet/end-round to finalize the round and credit the winnings to the player’s balance.

Think of it this way: /wallet/end-round exists to trigger the payout. If there is no payout, there is nothing to trigger - so the round closes itself.

After /wallet/authenticate

When you call /wallet/authenticate, the response includes a round field. If the player has an incomplete round from a previous session (e.g. the game was closed before end-round was called), it will be returned here.

If round is present:

  1. Display the round result to the player - show the outcome of the previous round so the player sees what they won.
  2. Call /wallet/end-round - finalize the payout and credit the winnings.

If round is null, there is no pending round - proceed with normal game flow.

If you just played a round but /wallet/authenticate returns round: null, it means the round had a zero payout and was already auto-completed by the RGS. This is expected behavior.

Summary

ScenarioAction required
/wallet/play returns payout = 0None - round is auto-completed
/wallet/play returns payout > 0Call /wallet/end-round to credit winnings
/wallet/authenticate returns roundDisplay result to player, then call /wallet/end-round
/wallet/authenticate returns round: nullNone - no pending round