Solana Projects › Gamba

Gamba

Open-source SDK and on-chain protocol for provably fair Solana betting games

About

Gamba

This page is about Gamba at gamba.so, the open-source Solana protocol from GambaLabs. It is not gamba.com, which is a separate crypto casino. Nor is it the GAMBA token that CoinMarketCap lists as Ethereum-based.

Gamba is a toolkit for building fair betting games on Solana. It has on-chain programs and code packages. Players bet against shared pools of money that act as the house. Each player can check the result of a bet after it settles. A developer can copy Gamba's casino template, add a wallet address, and host it as a simple website. The site then earns a fee on every bet. The owner never has to put up their own money to pay winners. As of October 2026, Gamba's own list names 36 sites built on it, counting its demos.

How does Gamba work?

Gamba has three parts: frontends, pools and games. A frontend, which Gamba calls an App, is a webpage that sends bets straight to the Gamba program on Solana. There is no backend server. Each bet carries a "creator address", and that wallet collects the operator's fee.

Pools hold the money that pays out winners. Games are lists of payouts the program checks before it accepts a bet. When a bet settles, the program pays the player from the pool. The pool keeps the stake when the player loses.

The docs describe the operator's side as earning "fees on plays, all without assuming any personal risk". The pool's liquidity providers carry the risk of player wins instead.

Bet arrays and the fair-odds rule

Every Gamba game is a bet array: a list of multipliers, one of which the random number picks. Per the games docs, [0, 2] is a coin flip where you lose your stake or double it, and [0, 0, 0, 0, 5] is a one-in-five shot at five times your stake. The program rejects any array that would give the player an edge, such as [0, 3]. So the odds are at best even, and the operator's and pool's take comes from the fees added on top.

How Gamba's provably fair RNG works

Each result is hashed from three inputs. The rng_seed comes from Gamba's RNG provider, and the player sees a SHA-256 hash of it before betting. The client_seed is made by the player's browser, and the player can change it. The nonce goes up by one with each bet. Because the player holds the hashed seed before the bet, Gamba cannot swap it afterwards. The player can check the result once the seed is revealed. The flip side is that the seed still comes from Gamba's provider rather than an independent randomness oracle.

Gamba liquidity pools: earning as the house

Gamba pools are the bankroll. Per the pools docs, a pool can be created for any SPL token, and depositors receive an LP token. The first deposit sets one LP token to one underlying token. When players lose, the pool grows and each LP token is worth more of the underlying token. When players win, the reverse happens. The casino template ships with SOL, USDC and Wormhole (W) pools configured.

Each pool also has two side accounts:

  • Bonus tokens: players can mint them with the pool's token for free plays or discounts, but cannot redeem them back. Of the tokens used to mint them, 90% goes to a separate bonus fund and 10% to the jackpot. Winnings from bonus bets pay out in the real token.
  • Jackpot: a fund built from the fees on failed jackpot attempts. It grows until someone wins, and part of each win goes back into the main pool. Frontends choose whether to offer it.

Private pools let their owner set fees and maximum payouts, which public pools do not allow. The docs still mark their fee section "Coming Soon", so check a pool's terms on-chain before you deposit.

Gamba SDK: gamba-core-v2, gamba-react-v2 and gamba-react-ui-v2

The Gamba SDK is the code developers build with. It lives in one TypeScript repo and has four packages:

  • gamba-core-v2: the provider for the Anchor program, with helpers for pools, players, games, transactions and events.
  • gamba-react-v2: React hooks and context, including GambaProvider.
  • gamba-react-ui-v2: UI components and GambaPlatformProvider, where the creator address and fees are set.
  • @gamba-labs/multiplayer-sdk: a helper layer for multiplayer on-chain games. Version 2.0.0 was its first stable release, built for Anchor 0.31.1.

The Vite quickstart installs the three core packages, wraps the app in the Solana wallet adapter and Gamba providers, and points it at an RPC endpoint. It recommends a Helius key. The monorepo also holds the source for the Gamba explorer, its public explorer.

Gamba platform template: launch your own Solana casino

The platform template is a ready-made multi-game casino. Setup is three steps: fork the repo, connect it to Vercel, and edit src/constants.ts. As of October 2026 it has about 226 forks on GitHub.

The template's games are Dice, Flip, PvP Flip, Slots, HiLo, Mines, Roulette, Plinko, Plinko Race, Crash, Blackjack and Jackpot, plus an example game to copy. Multiplayer games and PvP Flip arrived in the August and September 2025 updates.

Gamba creator fees

The operator sets their own fee. The template's constants file defaults to:

  • a 1% creator fee, with a code comment capping it at 7%;
  • a 0.1% platform-wide jackpot fee;
  • a 1.5% fee on multiplayer games;
  • a 0.25% referral fee.

The Vite quickstart's example uses a 5% creator fee and a 1% jackpot fee instead. Fees differ from site to site, so players should check the site they use.

Casinos built on Gamba

Gamba keeps its own list of sites built on it. The list was last updated in December 2025 and has 36 entries. One is Gamba's own demo at play.gamba.so. Others include ChadBet, Guacamole, Fronk Casino, Felt Casino, Fabled Fortune, Poo.casino, BONKBET, Smashy.gg and SolBets.

Each of these sites is run by its own team. Gamba's code settles the bets. But each team sets its own fees and picks its own pools. Being on the list does not mean Gamba has checked the site.

Who is Gamba for?

Gamba suits two groups best.

  • Solana developers and communities who want a branded betting site without running a bankroll or a server. A memecoin community that wants a casino in its own token fits Gamba's model well. The constraint is that you need to edit a React codebase and supply an RPC endpoint. You also have to work out for yourself whether running a betting site is legal where you and your players are.
  • Liquidity providers who want to be the house. Pool depositors earn when players lose on balance, but their deposits are what pays winners.

It suits players less well. Fair odds and checkable results don't change the fact that the expected return of every bet is negative after fees.

Is Gamba safe? Risks and limitations

Gamba's main risks sit in the programs, the pools and the sites built on top.

  • No published audit. Gamba's site, docs and GitHub do not link to a security audit of the Gamba programs, and we found none in independent sources. Treat the contracts as unaudited.
  • Upgrade authority. The docs don't say who controls the upgrade authority for the Gamba program (Gamba2hK6KV3quKq854B3sQG1WMdq3zgQLPKqyK4qS18), and we could not confirm it from an explorer when we checked. If one key holds it, that key could change how pools and bets behave.
  • RNG trust. The seed comes from Gamba's own provider. The hash commitment stops it being changed after you bet, but the randomness is not from an independent oracle.
  • LP losses. A run of big wins, especially in a small pool, cuts the value of LP tokens. Bonus tokens can't be redeemed.
  • Operator risk. Anyone can launch a Gamba site, and some may be low-effort or misleading. Fees vary widely.
  • Anonymous team, quiet socials. GambaLabs is pseudonymous. The SDK repo was last updated in February 2026, and the @GambaLabs X account had no posts in the past year that our tools could find.
  • Legal status. Gamba asks for no licence or KYC, but gambling is restricted in many places. That burden falls on operators and players.

Gamba vs gamba.com and other alternatives

People often mix Gamba up with gamba.com. That is a crypto casino and sportsbook run by a company. It takes deposits in BTC, ETH and SOL and runs its own games such as Plinko and Mines. On gamba.com, the company holds your funds and runs the games. On a site built with Gamba (gamba.so), you bet from your own wallet. The payout list is checked on-chain. Reviews, complaints, withdrawals and logins for "Gamba casino" almost always mean gamba.com, not this protocol.

Some developers want to write their own game logic instead of using Gamba's pools and templates. On Solana, they usually pair their code with a randomness service such as Switchboard or ORAO's VRF. Then they must build the bankroll and the payouts themselves.

Does Gamba have a token?

No. Gamba has not launched a token. Its docs list a DAO as "Coming Soon", with no date. The GAMBA token on CoinMarketCap is listed there as an Ethereum token. It is a different project. Be wary of any "Gamba airdrop" or Gamba token on Solana. Treat it as fake unless @GambaLabs or gamba.so announces it.

Gamba team and history

Gamba is built by GambaLabs, a team that works under a pseudonym. No founders are named in public sources. All of the code is open source on GitHub. In August 2025 the casino template moved to version 2 of all packages and added multiplayer games. PvP Flip followed in September 2025. The latest SDK update came in February 2026 and fixed a Plinko crash. Support is through Gamba's Discord.

Contents

Note: inclusion in Solana Compass directory does not indicate a recommendation or endorsement of this project, its token(s) or its products. Data sourced with thanks from The Grid to aid in building these pages.

Reviews

0.0
0 reviews
Please login to write a review.
Solana tokens

Solana Token Markets

Explore all tokens →