Build on-chain games on Solana

Gamba provides tools for building & playing games directly on-chain.

Built on Gamba

Some projects that have integrated with Gamba

Explore more →

Key Features

Plug and Earn

Gamba's open-source SDK is really easy to work with. Simply provide your Solana address and start earning on every bet made on your site.

Provably Fair

Every result can be independently verified by the player. This means your users can start playing without worrying about trust.

Decentralized

Gamba exists on-chain and is completely permissionless. No license needed to start building. :)

Start Building →

import React from 'react'; import { GambaProvider } from "gamba-react-v2"; import { GambaPlatformProvider, GambaUi } from "gamba-react-ui-v2"; function DoubleOrNothing() { const game = GambaUi.useGame(); const doubleOrNothing = async () => { try { await game.play({ bet: [0, 2], wager: solToLamports(0.1) }) const result = await game.result() if (result.payout > 0) { console.log("Win") } else { console.log("Loss") } } catch (error) { console.error("Error:", error) } }; return ( <GambaUi.PlayButton onClick={doubleOrNothing}> Double or Nothing </GambaUi.PlayButton> ); } function App() { return ( <GambaProvider> <GambaPlatformProvider creator={"<CREATOR_ADDRESS_HERE>"}> <DoubleOrNothing /> </GambaPlatformProvider> </GambaProvider> ); }

✨ Zero deployments

With just a static webpage you can build betting games that interact directly with the Solana blockchain, and collect fees on every bet made via your frontend.

Check out our Github to get started