Appearance
Round History (Compliance)
For casino compliance and player transparency, the platform records every spin, hand, or round. The SDK exposes this data for "My Bets" or "Game History" pages.
Fetching Rounds
The getRounds method is paginated and can be filtered by a specific gameId.
javascript
// Fetch last 20 rounds across all games
const history = await sdk.games.getRounds({
limit: 20,
offset: 0
});
// Fetch history for a specific game only
const sweetBonanzaHistory = await sdk.games.getRounds({
gameId: 'game_sweet_bonanza',
limit: 10
});Round Interface
typescript
interface GameRound {
id: string;
gameId: string;
gameName: string;
provider: string;
betAmount: number;
winAmount: number; // 0 if they lost
currency: string;
status: 'COMPLETED' | 'PENDING' | 'FAILED';
createdAt: string; // ISO 8601 Date string
reference?: string; // Provider's internal round ID for support tickets
}Use Case: In-Game Modal
A common UI pattern is to show a user their recent bets while they are playing the game. You can use the gameId filter to populate a modal inside the game launcher view with their last 5 bets on that specific game.