Overview
Integrating with Upside.win is simple. Your game runs in an iframe on our platform, receives player authentication via JWT, and interacts with the Upside backend through our SDK for bet placement and payout processing. Key principle: Your backend handles game logic and state (cards, winners, outcomes), while Upside handles all WIN token transactions.Integration Flow
1
Contact B3 Team
2
Game Loads in Iframe
Players launch your game, which loads inside an iframe on upside.win. Your game receives: - JWT token for the player - Player authentication context - Access to the Upside SDK
3
Frontend: Receive JWT
Wrap your game with
ParentProvider from the Upside SDK to receive the JWT.4
Backend: Place Bet
When a player starts playing, your backend calls
placeBet to lock in their wager.5
Backend: Handle Game Logic
Your backend: - Determines game outcome (coin lands on heads/tails) - Stores game state in your database - Calculates payout amount - Prepares outcome data (player choice, result, outcome)
6
Backend: Process Payout
When game ends, send the result to Upside to credit the player’s WIN balance.
7
Frontend: Show Result
Your game displays the outcome to the player.The Upside platform automatically:
- Updates the player’s WIN balance
- Adds the win/loss to leaderboards
- Sends notifications
HypeDuel