Author

Topic: Anyone want to test my gambling contract in ETH testnet? (Read 330 times)

sr. member
Activity: 340
Merit: 254
CREATE YOUR OWN CRYPTO-CURRENCY WITH ETHEREUM 150$
hello
need some ropsten eth

0xCAFf5ea735C0bDD069B9455AaA4c777509A885c8

thanks
newbie
Activity: 12
Merit: 0
I think you want test in youre gambling site
but only etherum token

what this mean test you can give youre etherum token
newbie
Activity: 4
Merit: 0
Hi there,

I wrote a gambling contract in ETH testnet (Ropsten), it's a simple contract so I wanted to let you guys test it.

This contract is currently base on ETH testnet blockchain, you can bet the last digit of the difficulty, which is the block that collect your transaction.

Some information and source code can be found on: https://ropsten.etherscan.io/address/0x5bd3e24b71ce3dd188a3bf48cd874b95cc6a1155#readContract

How to bet:

Contract Address: 0x5bd3e24b71ce3dd188a3bf48cd874b95cc6a1155 (DON'T SEND ETH TO THIS CONTRACT)(ROPSTEN ETH ONLY)

send fund less than the max bet limit with the bet data.

https://i.loli.net/2017/07/16/596b5bf4e89b0.jpg
(you can found it on the link above)

So the max bet limit is 126515151515151515/1000000000000000000=0.12651515151ETH

For example, if I wanted to bet number 6 with 0.1 ROPSTEN ETH. You can use MyEtherWallet to send your ROPSTEN ETH to contract.

Make sure gas limit is 50000, or else your transaction may be out of gas.

https://i.loli.net/2017/07/16/596b5cb78bd2b.jpg

Code:
0x7365870b0000000000000000000000000000000000000000000000000000000000000006

You can change the last digit (0 to 9 only) of the data to place your own bet.

or you can use Interact with Contract in MyEtherWallet, ABI can be found on: https://ropsten.etherscan.io/address/0x5bd3e24b71ce3dd188a3bf48cd874b95cc6a1155#code

How to verify your bet

For example, I bet 6 in this transaction: https://ropsten.etherscan.io/tx/0x17ce6b633a5f55abaf4964b556cf592dae01495746535948ee2c4ae1679bca1a

You can see what I bet in Input Data, the last digit 6 is what I bet.

Also you can know this transaction is collect by block 1310198, so in https://ropsten.etherscan.io/block/1310198 , we can find the difficulty in this page. For 1310198, this is 603,360,328

so I failed in this bet, 1 wei will be automatically send back to you.

If you're lucky, 9.9 times of your bet will be send back to you automatically. 1% house edge.

CLAIM YOUR ROPSTEN ETH

leave your ROPSTEN address here I will send you 0.5 ROPSTEN ETH for this test.

Have Fun!
Jump to: