Bitcoin Forum
May 10, 2024, 09:24:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Smart Contract]Win ETH via Ethereum smart contract  (Read 200 times)
EthGame (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
July 18, 2017, 04:20:00 AM
 #1

Here is the contract Address :      0x9425503158208603dFF6FcD82De4dEE425290bA1

You can visit it here:       https://etherscan.io/address/0x9425503158208603dFF6FcD82De4dEE425290bA1

This is a very simple smart contract just like filpping coin.You bet 0.1 eth, if you win,get 0.195 eth. If you lose, get 0.003 eth back.

Winner/loser are depends on the last ethereum block's difficulty&coinbase&hash.The source code of this smart contract has been verified and published, you can visit it here:
https://etherscan.io/address/0x9425503158208603dFF6FcD82De4dEE425290bA1#code


How To Play:

Just send 0.1eth to 0x9425503158208603dFF6FcD82De4dEE425290bA1  , NO MORE No LESS .  DONE.
You will get 0.195 eth(win)/0.003 eth(lose) when there is another player send 0.1 eth to the samrt contract.
If you are not sending 0.1 eth, the smart contract will send it back.


If you are using Mist,you can watch this contract,the contract json interface is :

[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "Bet 0.1ETH,no more no less.Get 0.195ETH if you win,or 0.003ETH if you lose. " } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [], "name": "bet", "outputs": [], "payable": true, "type": "function" }, { "constant": true, "inputs": [], "name": "gambler2", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "bet1", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "bet2", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "gambler1", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "fee", "outputs": [ { "name": "", "type": "address", "value": "0xa540e0c3ff31b57de9afd1d7067a51878bb4d601" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "gamblers", "outputs": [ { "name": "", "type": "uint8", "value": "0" } ], "payable": false, "type": "function" }, { "inputs": [ { "name": "_fee", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;fee", "template": "elements_input_address", "value": "" } ], "payable": false, "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "gambler", "type": "address" }, { "indexed": false, "name": "bid", "type": "uint256" } ], "name": "gamblerevent", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "winner", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "winner", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "loser", "type": "address" }, { "indexed": false, "name": "change", "type": "uint256" } ], "name": "loser", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" } ]


Good Luck.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!