Skip to main content

Questions tagged [gambling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
53 views

Safe, Secure, Random Number using only Vyper smart contracts (NO CHAINLINK VRF)

For the purposes of my gaming project I am ditching chainlink VRF in order to obtain a random number because honestly... I hate everything about chainlink. Paying .1 link for a random number is absurd ...
Jack Vafi's user avatar
-1 votes
1 answer
56 views

What is the state of the art of transaction costs in a pure gambling smart contract?

AFAIK, the vast majority of crypto gambling uses crypto only as a payment rail, and then implements the gambling step in a traditional (though usually provably fair) way. Using a smart contract to ...
gas-efficiency-man's user avatar
1 vote
1 answer
843 views

How can we lock ETH in user wallet without escrow contract?

I know the logic of using an escrow contract in which 2 or more users send their wagered ETH to a smart contract acting as escrow proxy, and then after some decision contract executes we release the ...
Pobosa A's user avatar
1 vote
1 answer
159 views

Preventing manipulation of random number generation for casino contract

I'm reading through the accepted answer to this question on securely creating random numbers for multiplayer blockchain-based casino games. I don't understand the reason for step 4: "Users send their ...
jcarpenter2's user avatar
1 vote
1 answer
266 views

I have 2 questions. 1: Is it possible to generate an array of random numbers, with every number to distinct, say 10 numbers in range of 0 and 1000?

I know, that using block hash or timestamp is not secure for gambling applications, and I know that I can use Oraclize to get a real random number. But is it possible to ask for an array of distinct ...
Andrey Ruzhencev's user avatar
0 votes
1 answer
155 views

How does secure communication (e.g. HTTPS) with a Smart Contract work?

I'm working on a smart contract to run a fair lottery game. The winner is chosen by way of random number generation. The current plan is to get the random number from an oracle source. However, this ...
jp94's user avatar
  • 101
3 votes
0 answers
1k views

Is this approach to an ethereum lottery sound and/or novel?

I'm looking at making gambling apps is ethereum. Currently made a contract that can flip a coin. After looking at this question: How can I securely generate a random number in my smart contract? and ...
EthJ's user avatar
  • 173
6 votes
1 answer
321 views

What are the challenges in creating a peer2peer coin flipping contract in ethereum?

I wish to make a contract that will allow two (eventually possibly more) people to gamble on essentially flipping a coin using ethereum. One person will not be "gambling against the contract" but ...
EthJ's user avatar
  • 173
2 votes
1 answer
75 views

How can I distribute an amount of ether between a number of addresses based on percentages?

full contract code I have a contract (code above) where ether is bet on either side 0 or side 1. A winning side is determined (payout function), and the amount of ether that a winner will receive is ...
user1113569's user avatar
3 votes
2 answers
155 views

How is consensus in the state achieved if contracts have random output?

I'm quite new to Ethereum so forgive my lack of detail and awareness in this question. I've seen some gambling applications built on Ethereum and I'm wondering how the network agrees on the outcome ...
Carlos G. Oliver's user avatar
5 votes
1 answer
261 views

the etherdice's detailed algorithm

according to this link about etherdice, the game needs both players provide a seed and combine them together as the input of a RNG(random number generator) to generate the dice number, but one problem ...
Wang's user avatar
  • 2,426
3 votes
2 answers
509 views

how to develop a multi-step game with the contract

I want to develop a multi step gambling game, my question is can several transactions be sent to the game contract separately(some first, some after) but all contribute to the result?
Wang's user avatar
  • 2,426
2 votes
0 answers
170 views

Using External API in a Contract? [duplicate]

Is it possible (and feasible) to have a solidity contract connect to an external api and execute a contract based on what is found? For example betting on sports games by agreeing to a credible API ...
Philip Kirkbride's user avatar
3 votes
0 answers
102 views

Which is the safest way to generate a random number? [duplicate]

I need a function that generates a random number from 0 to n for the lottery. I found 2 ways to do that: 1. https://gist.github.com/alexvandesande/259b4ffb581493ec0a1c But miners can influence the ...
Maxim Ananko's user avatar
6 votes
4 answers
3k views

Are there any dice / casino gambling games / smart contracts for ethereum yet?

Are there any dice / casino gambling games / smart contracts for ethereum yet? Where can I get a list of them?
Patoshi パトシ's user avatar
233 votes
20 answers
101k views

How can I securely generate a random number in my smart contract?

If I am writing a smart contract for some kind of (gambling) game, how can I generate a random number securely? What are the best practises and security trade-offs to be aware of?
J-B's user avatar
  • 8,961