Skip to Content
Advanced: Direct SDKReact IntegrationDefuse

Defuse

Defuse the bomb before it explodes — watch fuses light up every 2 seconds and cash out before a red one appears.

Import

import { DefuseGameSDK } from '@maktubbet/sdk/defuse' import '@maktubbet/sdk/defuse/styles.css'

You can also import from the root package:

import { DefuseGameSDK } from '@maktubbet/sdk'

Usage

'use client' import { useState } from 'react' import { DefuseGameSDK } from '@maktubbet/sdk/defuse' import '@maktubbet/sdk/defuse/styles.css' export default function DefusePage() { return ( <DefuseGameSDK 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>} onToast={(t) => console.log('Toast:', t.title)} theme={{ backgroundDark: '#0D1117', backgroundDarkLight: '#161B22', inputBackground: '#0D1117', actionButtonColor: '#1C2333', buttonColor: '#FFFFFF', }} /> ) }

Demo Mode

Demo mode is automatically enabled when a user places a bet with a $0 amount. To run the game entirely client-side without a backend session, pass isDemo — see Demo Mode.

Features

  • Bomb with countdown — 10-second timer displayed on the bomb
  • Fuse indicators — 5 fuses light up green or red every 2 seconds
  • Multiplier legend — progression through multiplier tiers (0x, 0.1x, 0.6x, 1.2x, 4.2x, 10x)
  • Explosion animation — visual feedback when a red fuse detonates the bomb
  • Autobet — automated consecutive bets
  • Theme-aware — bomb and UI elements adapt to the dark background theme

Props

See Shared PropsDefuseGameSDK accepts the standard DefuseGameSDKProps interface.

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