Crypto casino questions · 21 / 23
What a decentralized casino is, and who can change its rules
A decentralized casino is a set of games that run as a smart contract on a blockchain, so that stakes are held and paid by code and not by a company's account system. How decentralized such a casino really is depends on four things: custody, what the contract does, who holds its upgrade authority, and who supplies the randomness.
Short answer
A decentralized casino is a set of games run by a smart contract instead of by a company's server. Players keep their coins in their own wallets until a bet, and the contract's code decides the payouts. Decentralized describes where the game runs and who holds the coins. It does not mean that nobody is in charge, because whoever can upgrade the contract can change its rules.

Key facts
- Custody stays with the player until a bet is placed.
- A contract does what its deployed code says. Published source code counts only if it is the code that runs.
- On Solana a program can be replaced while an upgrade authority is set, and becomes immutable when the authority is revoked (Solana documentation).
- A confirmed transaction cannot be cancelled (ethereum.org), so a signed bet stands.
- The house edge remains, written into the payout rule.
Custody, or who holds the coins
At a casino site with accounts the operator holds your deposit and owes you a balance. In a contract-based game you keep your coins in your own wallet until the moment you bet. The stake then moves to an account the contract controls, and a win is paid from the contract's pool by its code.
This removes one risk and keeps another. Nobody can freeze a balance you never handed over. The pool that pays winners, though, sits in the contract, and whoever can change or drain the contract controls that pool. And the transfer of your stake is final: ethereum.org's wallet guide says of a confirmed transaction that “you cannot cancel the transaction”.
What the contract does
The contract is the rule book in executable form. It defines which bets are accepted, how a result is computed, what each outcome pays and when a round counts as settled. If its source code is published and matches what is deployed, anyone can read those rules. If it is not, the word decentralized describes only where the program runs, and the rules are as hidden as on any server.

| Question | Why it matters | Where to look |
|---|---|---|
| Is the source code public, and is the deployed program built from it? | Otherwise nobody outside can read the rules | The project's repository and any published verification of the build |
| Can the program be replaced? | A replaceable program can have its rules changed after you bet | The program's account in an explorer, under upgrade authority |
| Which keys have special powers? | An admin key may pause the game, change fees or move the pool | The code and the project's documentation |
| Who supplies the randomness and who settles a round? | A party that knows the result first can decline to settle | The round's transactions and the code |
The upgrade authority
On Solana the question of replacement has a precise form. The documentation on programs states that programs deployed with the upgradeable loader “can be upgraded when an upgrade authority is set” and that “revoking that authority makes the program immutable”. While an authority is set, the holder of that one key can deploy new code at the same address. Other chains have their own mechanisms with the same effect, and the question to ask is the same on all of them.
An upgradeable program is not a fault by itself. New projects keep the key so that they can fix bugs. It does mean that the rules you read today are rules until further notice, and that the people holding the key are part of what you rely on. A project can narrow this by putting the key behind several signers or a time delay, and it should say which.
Who can change the rules
- The upgrade authority, by replacing the program.
- Admin keys, within whatever the code lets them set: fees, limits, payout tables, a pause switch.
- The party that provides randomness or triggers settlement, by not acting. A round that needs the operator to reveal a secret can be left open.
- The front end. The website that builds your transaction is an ordinary site under one party's control. It can show one thing and ask your wallet to sign another, so read what the wallet displays before approving.
A casino is decentralized to the extent that none of these can be used against a player. Few are fully so, and the term is often used for any game with a contract in it.
What a player can verify
- That each bet and payout is a transaction, and what the program did in it. The page about verifying a Solana transaction shows how to read one.
- Whether an upgrade authority is set.
- Whether an audit report exists for the deployed version, and what it found. The page on reading an audit report gives a checklist, and explains what the absence of an audit means.
- How the result is produced and who learns it first. See Solana casinos for the on-chain case.
What stays the same
A contract enforces its rules, including the house edge written into them. A decentralized casino takes its share as reliably as any other. It also offers none of what a licence brings where one applies: no regulator, no complaints body and no one to reverse a mistaken payment. How payments go wrong is covered on the page about depositing to a crypto casino, and the general layout of these services on the page about what a crypto casino is.
The team that publishes this site runs games on a smart contract of its own, which has not been independently audited and holds no gambling licence. Read this page with that interest in mind. See the About page.
How does a decentralized casino compare with a custodial one?
| Point | Custodial site | Decentralized game |
|---|---|---|
| Who holds the coins | The operator, from the deposit on | Your wallet, until each bet |
| Where results are computed | On the operator's server | In the contract, from inputs it reads on the chain |
| Who can stop a payout | The operator | Nobody, unless the code or its administrator allows it |
| Who can change the rules | The operator | Whoever holds the upgrade authority |
| What is public | What the operator publishes | Every transaction, and the code if it is published |
| What you rely on | The operator and its regulator, if it has one | The deployed code, whoever can upgrade it, and the source of randomness |
Which questions show how decentralized a game really is?
- Is the contract address published by the project, and does your wallet call that address?
- Is the source code public, and is there evidence that the deployed code was built from it?
- Who holds the upgrade authority: one key, several keys that must sign together, or nobody?
- Are there administrator functions that can pause the game, move funds or change the odds? An audit report lists privileged roles when it covers them.
- Where does the random number come from, and who learns it first? See on-chain randomness.
- What happens to a round that is never settled? Is there a refund that anyone can trigger?
- Can the contract be called without the project's website?
Which parts can still be centralized?

Several, even when the game logic is a contract. The website that builds your transactions is served by someone and can be changed or taken offline. A key of the operator may be needed to settle rounds, for instance to reveal a committed secret. An oracle may supply the random number. And the upgrade authority can replace the code. Each of these is a party you depend on, and a careful project names them.
Which mistakes are common?
- Assuming the label settles a legal question. Whether gambling is allowed where you live does not depend on how the software is built.
- Assuming code cannot change. It can, while an upgrade authority exists.
- Relying on an audit badge without opening the report and checking which version of the code it covers.
- Approving wallet requests without reading them. A signature cannot be taken back.
- Forgetting the house edge because no house is in sight. It is in the payout rule.
Which terms does this page use?
- Smart contract
- A program stored on a blockchain that moves coins according to its code.
- Custody
- Who holds the coins. The mistakes that follow from giving it up are on the page about depositing to a crypto casino.
- Upgrade authority
- The key that may replace the code of a program.
- Immutable
- Not changeable by anyone, because no upgrade authority remains.
- Oracle
- A service outside the contract that supplies data to it, such as a random number.
- Front end
- The website through which players reach the contract.
Questions people ask
What is a decentralized casino?
A casino whose games run as a smart contract on a blockchain. Stakes go from the player's wallet to the contract and winnings are paid by the contract's code, without an account held by a company.
Is a decentralized casino controlled by nobody?
Rarely. Someone deployed the contract, and often someone holds a key that can upgrade it, pause it or change its settings. How much control remains is the thing to find out.
What is an upgrade authority?
On Solana, the key that is allowed to replace a program's code at the same address. Solana's documentation says that revoking it makes the program immutable.
Can a decentralized casino refuse to pay?
The contract pays by its code, so a settled win is paid if the pool holds enough. A round can stay unsettled if settlement needs an action from the operator, and a replaced program follows new rules.
Is a decentralized casino legal?
That depends on the law where you live and on whether whoever offers the game holds a licence valid there. A contract with no operator behind it holds none. This site does not give legal advice. The way the software is built, or the coin used, does not change what the law of your country says about gambling.
Do decentralized casinos ask for identity documents?
A contract checks signatures and not passports. Whether the people behind it, or the website in front of it, ask for identification is their decision, and the law may require it of them.
Does a decentralized casino have a house edge?
Yes, if it is run to earn money. The edge is part of the payout rule in the contract, and published code lets you read it.
Can the contract take more than my stake?
A transaction moves what it states, and your wallet shows the request before you sign. Read each request, and refuse any that asks for more than the bet you intend.
What happens if the website disappears?
The contract stays on the chain. Whether you can still reach funds depends on whether the contract can be called without the site and on what it holds for you. A game that keeps no player balance between bets leaves nothing behind.
How is this different from a provably fair casino?
Provably fair is a method for showing how one round was drawn, and custodial sites use it too. Decentralized describes where the game runs and who holds the coins. A game can be one, both or neither. See provably fair at a Bitcoin casino and the page about Solana casinos.
Is a web3 casino the same as a decentralized casino?
Not necessarily. Web3 is used loosely, often for any site that lets you connect a wallet. Decentralized, as used on this page, means that bets are settled by a contract and the coins stay in your wallet until then. Check which of the two a site means.
Sources
- Solana documentation, Programs. States that a program deployed with the upgradeable loader can be changed while an upgrade authority is set, and that revoking the authority makes it immutable. Checked .
- ethereum.org, How to use a wallet. States that a confirmed transaction cannot be cancelled, that the same address can be used on all EVM-compatible blockchains and that sender and recipient must use the same network. Checked .
How we checked: statements about a named body link to that body's own page and carry the date we read it. Numbers in worked examples are computed by the site's build from the formulas shown, with routines covered by its test suite.