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.
Every result can be independently verified by the player. This means your users can start playing without worrying about trust.
Gamba exists on-chain and is completely permissionless. No license needed to start building. :)
import React from 'react'
import { Gamba, useGamba } from 'gamba/react'
function DoubleOrNothing() {
const gamba = useGamba()
const doubleOrNothing = () => {
gamba.play({
bet: [0, 2],
wager: solToLamports(0.1)
})
}
return (
<button onClick={doubleOrNothing}>
Double or Nothing
</button>
)
}
function App() {
return (
<Gamba creator="<PUBLIC KEY>">
<DoubleOrNothing />
</Gamba>
)
}
With just a few lines of code you can build betting games that interact directly with the Solana blockchain, and collect fees on every bet made via your frontend.
No blockchain coding needed!
People are already earning SOL by hosting their own gamba casinos - Check out the Gamba explorer
Here are some things that are currently in the works.
Document existing libraries and tools and add more examples.
Collaboration with projects and help them get started with Gamba.
Custom liquidity pools funded by the community will allow players to use tokens other than SOL. Stakers of the pool will earn a percentage of every game played in the pool.
Gamba is built with complete decentralization in mind. Different configurations such as creator fee, house fee and more will be controlled via a community-owned governance token.