Casino SDK overview
45 documented methodsCasino SDK is the casino-content surface of BetChain Core. It reads game catalogs, jackpots and tournaments from the CMS over HTTP, and exposes them to React through a single hook.
What you can build
Game catalog & providersGames by category, provider and view, with icons, metadata and search endpoints.
Launch & activity dataRecently played games, active player counts, top RTP and daily high-turnover games.
Jackpots & bonusesJackpot games, free-spin and free-chip bonuses, and conversion amounts.
Tournaments & limitsAvailable tournaments, tournament games, joining flows, and casino loss and bet limits.
How it works
Casino SDK talks to the CMS over HTTP. Initialize it once with your API URL, version and platform, then read data with the useCasino hook or call the methods directly.
Your React appcomponents + hooks
initializeinitCMSCasino()
Casino SDKinitCMSCasino + useCasino
requestuseCasino · direct call
TransportHTTP
responsetyped payload
Betchain CMScasino content services
Choose your call pattern
Every documented method is reachable in more than one way. Pick the pattern that matches how often the data changes.
What the SDK guarantees
Typed end to endPass the method reference to useCasino and the returned data is typed from that method’s response declaration.
Shares one packageCasino, Content and Swarm ship in the same package under separate entry points, so a single install covers all three. Installation
Errors come back as dataEvery call resolves with hasError, status and message next to the payload rather than throwing. Error codes
Private distributionThe package is published to the private BetChain registry (sdk.betconstruct.com/npm). You need an authenticated .npmrc before it will install. Installation
Requirements
Package@softconstruct/betchain-core-client
Version3.0.11
React19.x (peer dependency)
Module formatESM only
Entry points/casino · /hooks
Registrysdk.betconstruct.com/npm
Next steps
Was this page helpful?