Skip to Content

Launch (Vanilla JS)

Run 10 system checks before launching a rocket — if all pass, receive a random altitude multiplier up to 30x!

Script Tag

<script src="https://unpkg.com/@maktubbet/sdk/vanilla.global.js"></script>

Usage

<div id="launch-game"></div> <script> const game = MaktubSDK.launch('#launch-game', { accessToken: 'user-jwt-token', user: { balance: 1000, betCount: 0, isAuthenticated: true }, updateBalance: (balance) => console.log('Balance:', balance), onAuthRequired: () => console.log('Auth required'), currency: { code: 'USD', prefix: '$', rate: 1 }, language: 'en', }) </script>

Demo Mode

Demo mode is automatically enabled when a user places a bet with a $0 amount. Players can try any game without risking real funds — no special configuration is needed.

Update & Destroy

game.update({ user: { balance: 5000, betCount: 10, isAuthenticated: true } }) game.destroy()
Last updated on