Skip to Content
Advanced: Direct SDKReact IntegrationSafe

Safe

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

Import

import { SafeGameSDK } from '@maktubbet/sdk/safe' import '@maktubbet/sdk/safe/styles.css'

You can also import from the root package:

import { SafeGameSDK } from '@maktubbet/sdk'

Usage

'use client' import { SafeGameSDK } from '@maktubbet/sdk/safe' import '@maktubbet/sdk/safe/styles.css' export default function SafePage() { return ( <SafeGameSDK accessToken="user-jwt-token" user={{ betCount: 0, isAuthenticated: true }} updateBalance={(newBalance) => console.log(newBalance)} onAuthRequired={() => console.log('Auth required')} currency={{ code: 'USD', prefix: '$', rate: 1 }} language="en" logo={<span>MY LOGO</span>} theme={{ backgroundDark: '#0D1117', backgroundDarkLight: '#161B22', inputBackground: '#0D1117', actionButtonColor: '#1C2333', buttonColor: '#FFFFFF', }} /> ) }

Features

  • 4 LED discs — each lights up green or stays red based on probability
  • 4 difficulty levels — Easy, Medium, Hard, Expert with different payout tables
  • Multiplier legend — bottom row shows payouts per green count
  • Safe SVG — theme-aware safe graphic with animated LED indicators
  • Autobet & Advanced — automated and conditional betting strategies
  • Difficulty selector — change difficulty to adjust risk/reward

Props

PropTypeRequiredDefault
accessTokenstring | null
userGameUser
updateBalance(balance: number) => void
onAuthRequired() => void
currencyGameCurrency{ code: 'USD', prefix: '$', rate: 1 }
languagestring'en'
logoReactNode
onToast(toast: ToastData) => void
themeGameTheme
Last updated on