Author

Topic: Win ETH via an Ethereum Smart Contract. (Read 220 times)

member
Activity: 82
Merit: 10
July 18, 2017, 12:53:58 AM
#2
Looks like a gambling contract. They have such contracts on sites like vDice already though.
newbie
Activity: 6
Merit: 0
July 17, 2017, 11:02:25 PM
#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.1eth, if you win,get 0.195eth. If you lose, get 0.003eth 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.195eth(win)/0.003(lose) when there is another player send 0.1eth to the samrt contract.
If you are not sending 0.1eth, 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": " _ 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.
Jump to: