Skip to Content

Safe (Vanilla JS)

Crack the safe — light up green LEDs for escalating multipliers!

Script Tag

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

Usage

<div id="safe-game"></div> <script> const game = MaktubSDK.safe('#safe-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