18+ or your local legal age · Gambling involves risk · Help · How we earnUS reader? Read our US guide
English
USD · 24h · 18:45 UTC · Kraken

Guide

Decentralized Crypto Casinos: How Web3 and Smart-Contract Casinos Work

How decentralized and web3 crypto casinos work: wallet bets, smart contracts, VRF randomness and bankroll pools, plus past exploits and checks before playing.

By Lukas Brandt Fact-checked by Elena Márquez Updated 13 min read

A decentralized casino (also called a web3, smart-contract or on-chain casino) runs bets through code on a blockchain instead of on a company’s private servers. You connect a self-custody wallet such as MetaMask, each bet is a transaction to a smart contract, and the contract pays out automatically from a bankroll that anyone can inspect. That removes some trust in the operator, but it adds new risks: contract bugs, manipulated randomness, wallet approvals and, very often, no licence or complaint route at all.

This guide explains how decentralized crypto casinos work, how they differ from ordinary bitcoin and crypto casinos, what has gone wrong in the past, and what to check before you connect a wallet. Nothing here is a recommendation to play on any particular dApp. It is part of our crypto gambling guides.

What is a decentralized casino?

At an ordinary crypto casino you deposit bitcoin, ETH or USDT into an account the company controls. It records your balance in its own database, runs the games on its own servers, and decides when to send a withdrawal. Our guide what is a crypto casino walks through that model.

A decentralized casino moves some or all of those jobs onto a blockchain:

  • Custody. Your coins stay in your own wallet until you place a bet. There is usually no account balance held by a company.
  • Game logic. The rules (odds, payouts, maximum bet) live in a smart contract whose code can be read on a block explorer.
  • Randomness. Results come from an on-chain or oracle-based random number source that can be checked after the fact.
  • Bankroll. The house money sits in a contract, often funded by outside liquidity providers who share in the house edge.

In practice many sites are hybrids. A web front-end, hosted by a company or a small team, sits on top of the contracts; some games settle on-chain while others (third-party slots, live dealers) still run on ordinary servers. “Decentralized” on a landing page tells you little until you check which parts are actually on-chain.

Web3 casino, blockchain casino, decentralized: are they the same?

The labels overlap and are used loosely. “Web3 casino” usually means a site you log into with a wallet instead of an email address. “Blockchain casino” often just means a casino that takes crypto. “Decentralized” should mean that the bets and payouts run through smart contracts, but marketing pages apply it to almost anything with a crypto cashier.

Some ranking pages even list ordinary custodial casinos, where you deposit into an account the company controls, as “decentralized”. That is wrong, and it matters: on a custodial site the operator holds your balance and decides on withdrawals, exactly like any other online casino. Two quick tests separate the models. First, does your balance sit in your own wallet between bets, or in an account on the site? Second, can you find the contract that settles your bet on a block explorer? If the answer to both is “the site” and “no”, it is a regular crypto casino with a wallet login.

How a decentralized casino works, step by step

  1. Connect a wallet. You connect MetaMask or another self-custody wallet. Some sites ask you to sign a message to log in (the Sign-In with Ethereum standard, EIP-4361), which costs no gas and moves no funds.
  2. Approve a token, if needed. To bet with a token such as USDT or USDC, you first sign an approval that lets the casino contract move that token from your wallet. This is the step that carries the most risk (see below).
  3. Place the bet. Each bet is a transaction you sign. It pays a network fee (gas) on top of your stake.
  4. Get a random result. The contract requests a random number, usually from an oracle such as Chainlink VRF, and receives it together with a cryptographic proof.
  5. Settle. The contract calculates the result and, if you win, sends the payout straight to your wallet from the bankroll contract.

No withdrawal queue exists because there is no balance to withdraw: winnings land in your wallet in the same flow. That is the biggest practical difference from a custodial crypto casino.

Decentralized vs regular crypto casino

Feature Regular crypto casino Decentralized casino
Who holds your coins The casino, until you withdraw You, until each bet is placed
Sign-up Email and password; ID can be requested later Wallet connection; often no account at all
Withdrawals Reviewed and sent by the operator Paid by the contract in the same transaction flow
Fairness check Provably fair for in-house originals; lab testing for slots Contract code and randomness proofs readable on-chain
Game choice Thousands of slots, live tables, sportsbook Usually a small set: dice, coin flip, roulette, crash, plinko
Fees Network fee on deposit and withdrawal Gas on every bet and approval
Licence Usually Curaçao, Anjouan or Tobique Often none
Complaint route Casino, then an ADR body named by the licence Usually none beyond the team’s own channels
Main failure risk Operator refuses or delays payment, or is hacked Contract bug, oracle failure, malicious approval

How randomness works on-chain, and why it is hard

A blockchain is deterministic: every node must reach the same result, so a contract cannot simply “pick a random number”. Early contracts used values such as the block timestamp or block hash as a seed. The Smart Contract Weakness Classification lists that as SWC-120, “weak sources of randomness from chain attributes”, because the party producing the block can influence those values and, when a big payout is at stake, choose a block that suits it.

The common fix is a verifiable random function (VRF). Chainlink describes its VRF as a provably fair and verifiable random number generator for smart contracts: for each request it produces a random value plus a cryptographic proof, and the proof is checked on-chain before the contract can use the value. Version 2.5 is the current one, and Chainlink lists blockchain games among its main uses. Other designs use commit-reveal schemes, similar to the server-seed and client-seed method behind ordinary provably fair games.

When you assess a decentralized casino, ask one question first: where does the random number come from? If the docs cannot answer it clearly, treat that as a warning sign.

Who is the house? Bankroll pools explained

Somebody has to cover the winning bets. Many decentralized casinos use a liquidity pool: outside investors deposit tokens into a bankroll contract, players bet against it, and the pool’s value rises when players lose on balance (the house edge) and falls when they win.

WINR Protocol, the system behind the JustBet casino front-end, is one example: its documentation describes one shared on-chain bankroll that backs every game and is owned by its liquidity providers, who earn through a rising share price. For a player, a pool has two consequences. The maximum bet is usually tied to the pool’s size, and if the pool is drained (by a run of large wins or an exploit), the contract may be unable to pay. For a liquidity provider, it is not passive income: you are the casino, with all of its downside.

What has gone wrong before

Decentralized gambling has a short history and a long list of incidents. Three show the main failure types:

  • Contract bug (EOSBet, 2018). On 14 September 2018 an attacker took about 40,000 EOS (around $200,000 at the time) from the EOSBet dice app’s bankroll by calling its transfer function with a fake hash, a flaw in one assertion in the contract code.
  • Block manipulation (Fomo3D, 2018). Fomo3D was an Ethereum game where the last buyer before a countdown ended took most of the pot. On 22 August 2018 one address won the first round’s 10,469 ETH by filling blocks with its own high-fee transactions so that no one else could buy in before the timer ran out (a “block stuffing” attack).
  • Regulators still apply the law (Polymarket, 2022). On 3 January 2022 the US Commodity Futures Trading Commission ordered the crypto prediction market Polymarket to pay a $1.4 million penalty for operating an unregistered facility for event-based binary options and to wind down non-compliant markets. Running on a blockchain did not put it outside the rules.

Custodial casinos are not immune either. The FBI attributed the theft of about $41 million from Stake’s hot wallets around 4 September 2023 to the North Korea-linked Lazarus Group. Across the whole crypto industry, Chainalysis counted more than $3.4 billion stolen in 2025, about $1.5 billion of it in the February hack of the exchange Bybit. Moving from a company to a contract changes the attack surface; it does not remove it.

Risks specific to web3 casinos

Token approvals

An approval lets a contract spend a token from your wallet, sometimes without limit. If the contract is malicious, buggy or later compromised, an open approval can be used to empty that token from your wallet. MetaMask’s own support pages explain how to review and revoke allowances, either in its portfolio tools or through the approval checker on a block explorer such as Etherscan; each revocation is an on-chain transaction that costs gas. Approve only the amount you plan to bet, and revoke when you are done.

Fake front-ends and drainers

A copy of a real dApp’s website, reached through an ad or a direct message, can ask you to sign a transaction that hands over your tokens. Our guide to celebrity crypto casino scams shows how fake “new casinos” are pushed with deepfake videos; “web3” and “decentralized” are favourite words in those ads.

Gas and network costs

Every bet is a transaction, so small bets on a busy network can cost more in gas than they stake. Layer-2 networks help: Ethereum’s Dencun upgrade on 13 March 2024 cut layer-2 data costs through EIP-4844 “blobs”, which is why most on-chain games now run on layer-2 networks or other low-fee chains.

No licence, no referee

A smart contract has no licence, and the team behind a front-end often holds none either. If something goes wrong there is usually no regulator, no certified dispute body and no company you can take to court. Compare that with the complaint routes in our licence guides.

Gambling law usually applies to the activity, not the technology. If your country requires a local licence for online casinos, betting through a smart contract does not change that. Many front-ends block certain countries in their terms, and getting around those blocks breaks the terms you agreed to.

Taxes and records

Every bet leaves a public on-chain record. In many countries spending or swapping crypto can be a taxable event in its own right, separate from any rules on gambling winnings, so keep your own records of transactions.

How to check a decentralized casino before you connect

  1. Find the contracts. The docs should list contract addresses. Check them on a block explorer and confirm the source code is verified.
  2. Read the audits. Look for audit reports by named security firms, check their dates, and see whether the contracts changed afterwards. An audit lowers risk; it does not remove it.
  3. Check the randomness source. A named VRF or a documented commit-reveal scheme is a good sign; block hashes or timestamps are not.
  4. Look at the bankroll. How large is the pool, who can withdraw from it, and is there an admin key that can pause games or move funds?
  5. Check upgradeability. If the team can upgrade contracts at will, you are trusting the team again.
  6. Read the terms. Note restricted countries, maximum payouts and who operates the front-end.
  7. Use a separate wallet. Keep a small “hot” wallet for dApps and your savings elsewhere, ideally on a hardware wallet.
  8. Approve small, revoke after. Limit token approvals and revoke them when you stop playing.

How to read a casino contract on a block explorer

You do not need to be a developer to learn a lot from a block explorer such as Etherscan, Arbiscan or the explorer of whichever network the casino uses:

  1. Paste the contract address from the casino’s documentation into the explorer’s search box. Never use an address sent to you in a private message.
  2. Check the “Contract” tab. A “verified” label means the published source code matches what is deployed. Unverified code cannot be reviewed by anyone.
  3. Look at the balance and recent transactions. A bankroll contract with steady bet and payout traffic is behaving as described; one with large withdrawals to a single address deserves questions.
  4. Find the owner or admin. Many contracts have an “owner” function. If it points to a single wallet rather than a multi-signature wallet or a time-locked governance contract, one key can change or pause the game.
  5. Check for a proxy. Explorers flag upgradeable proxy contracts. Upgradeable means the logic you read today can be replaced tomorrow.
  6. Trace your own bet. After a small bet, open your transaction and follow the events: the bet, the randomness request, the fulfilment and the payout should all appear.

None of this replaces a professional audit, but it filters out sites that make on-chain claims they cannot back up.

Bonuses and tokens at decentralized casinos

Decentralized platforms rarely offer the deposit-match bonuses of custodial casinos, because there is no account to credit. Rewards usually come as the platform’s own token: a share of fees for staking it, a points programme that converts to tokens, or rebates paid in tokens. Treat these as a separate investment. A token reward is worth only what the market pays for it, can fall sharply, and in some countries counts as taxable income when received.

Wallets for web3 gambling

MetaMask is the most widely used browser wallet for Ethereum and EVM-compatible networks, and it is the wallet most decentralized casinos connect to first. Our MetaMask guide covers setup, networks and seed-phrase safety, and the wider crypto wallets guide compares software and hardware options. Bitcoin itself is rarely used for on-chain casino games, because its base layer does not run smart contracts of this kind; most decentralized casinos use ETH, stablecoins such as USDT and USDC, or their own tokens, on Ethereum layer-2 networks or other low-fee chains such as Solana. Moving funds between networks through a bridge adds its own smart-contract risk, so it pays to keep gambling funds on one network.

A cautious first session, start to finish

If you decide to try an on-chain game, a careful first session looks like this. Create a fresh wallet used only for gambling and fund it with a small amount of a stablecoin plus enough of the network’s native coin to pay gas. Open the casino through a bookmarked address taken from its official documentation, connect the wallet, and read every signature request before you approve it: a log-in message should not move funds, and a token approval should name a limited amount rather than “unlimited”.

Place two or three minimum bets, then trace one of them on the block explorer to confirm the randomness request and the payout went through the contracts the docs list. Stop at the budget you set before you started, revoke the token approval, and move anything left back to your main wallet. The whole routine takes a few minutes and costs a few transactions in gas; it limits a bad contract or a fake front-end to the small sum in the gambling wallet.

Should you use a decentralized casino?

Choose one only if you value self-custody and on-chain transparency enough to accept contract risk, gas costs, a small game range and no complaint route. If you would rather have a licence, a support desk and a large game library, a regular licensed crypto casino fits better; see our list of best bitcoin casinos, which includes brands with provably fair originals. Either way, set a budget before you start and use the help listed on our responsible gambling page if gambling stops being fun.

Decentralized casino FAQ

What is a decentralized casino?

It is a casino where bets run through smart contracts on a blockchain. You play from your own wallet, the contract pays winnings directly, and the game code and bankroll can be inspected on-chain.

Are decentralized casinos safe?

They remove some operator risk, because the casino never holds your balance, but add others: contract bugs, weak randomness, malicious token approvals and no licence or dispute body. Past exploits, such as the EOSBet hack in 2018, show the risk is real.

Running on a blockchain does not change gambling law. Where your country requires a local licence, an unlicensed decentralized casino is in the same position as any other offshore site. Check your local rules.

Do decentralized casinos need KYC?

Many ask only for a wallet connection, but the team running the front-end may still restrict countries or ask for checks in its terms. No KYC also means no regulator stands behind the site.

Which crypto casinos require no KYC?

Decentralized casinos that settle bets from your wallet usually ask for no documents, and many custodial crypto casinos skip ID at sign-up. Almost all custodial sites still reserve the right to ask for ID later, for example before a large withdrawal, and a site with no KYC also has no regulator behind it.

How is randomness generated in a smart-contract casino?

Good designs use a verifiable random function, such as Chainlink VRF, which delivers a random value with a proof that is checked on-chain, or a commit-reveal scheme. Using block hashes or timestamps is a known weakness.

Can I use MetaMask at a crypto casino?

Yes. Decentralized casinos connect to MetaMask directly, and regular crypto casinos accept deposits sent from MetaMask to their deposit address on a supported network.

Is a web3 casino the same as a decentralized casino?

Not always. “Web3 casino” often just means you log in with a wallet. It is only decentralized if the bets and payouts run through smart contracts and your balance stays in your own wallet between bets.

Sources

  1. EIP-4361: Sign-In with Ethereum
  2. Chainlink VRF documentation (v2.5)
  3. SWC-120: Weak sources of randomness from chain attributes
  4. WINR Protocol documentation (shared on-chain bankroll)
  5. The Next Web: EOS gambling app EOSBet hacked, 40,000 EOS taken (14 Sep 2018)
  6. Hackernoon (Onur Solmaz): The anatomy of a block stuffing attack (Fomo3D, 10,469 ETH)
  7. CFTC press release 8478-22: Polymarket ordered to pay $1.4 million penalty (3 Jan 2022)
  8. FBI: Lazarus Group cyber actors responsible for theft of $41 million from Stake.com
  9. The Record: over $3 billion in crypto stolen in 2025 (Chainalysis, $3.4bn total, Bybit $1.5bn)
  10. MetaMask Support: How to revoke smart contract allowances / token approvals
  11. EIP-4844: Shard blob transactions (Dencun, 13 Mar 2024)
  12. Gamblers Anonymous