ETH Price: $3,575.19 (+1.77%)
Gas: 51 Gwei

Contract

0x64bb42f7012cbFEF9E036dD8929cbc9d61c7C3CA
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Call_lucky51692122018-02-28 3:57:312220 days ago1519790251IN
0x64bb42f7...d61c7C3CA
0.00025 ETH0.000133334
Call_lucky51432962018-02-23 18:00:252224 days ago1519408825IN
0x64bb42f7...d61c7C3CA
0.00025 ETH0.000134052.1
0x6060604051432752018-02-23 17:55:122224 days ago1519408512IN
 Create: OneInTen
0 ETH0.00033312.1

Latest 4 internal transactions

Advanced mode:
Parent Txn Hash Block From To Value
51692122018-02-28 3:57:312220 days ago1519790251
0x64bb42f7...d61c7C3CA
0.00025 ETH
51432962018-02-23 18:00:252224 days ago1519408825
0x64bb42f7...d61c7C3CA
0.004725 ETH
51432962018-02-23 18:00:252224 days ago1519408825
0x64bb42f7...d61c7C3CA
0.004725 ETH
51432962018-02-23 18:00:252224 days ago1519408825
0x64bb42f7...d61c7C3CA
0.00025 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OneInTen

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-02-23
*/

pragma solidity ^0.4.20;

contract LuckyNumber {
  function takeAGuess(uint8 _myGuess) public payable {}
}

contract OneInTen {
  function call_lucky(address contract_address, address contract_owner) public payable {
    uint8 guess = uint8(keccak256(now, contract_owner)) % 10;
    LuckyNumber(contract_address).takeAGuess.value(msg.value)(guess);
    require(this.balance > 0);
    msg.sender.transfer(this.balance);
  }
  
  function() payable external {
  }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"contract_address","type":"address"},{"name":"contract_owner","type":"address"}],"name":"call_lucky","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

6060604052341561000f57600080fd5b6101988061001e6000396000f3006060604052600436106100405763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663dc1fc2088114610042575b005b610040600160a060020a03600435811690602435166000600a4283604051918252600160a060020a03166c0100000000000000000000000002602082015260340160405190819003902060ff1681151561009857fe5b06905082600160a060020a03166352541b6834836040517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815260ff90911660048201526024016000604051808303818588803b15156100fc57600080fd5b6125ee5a03f1151561010d57600080fd5b50505050600030600160a060020a03163111151561012a57600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561016757600080fd5b5050505600a165627a7a723058204363b94059b3b631be00898b50f0ba953893158818f1b1bd36a7ebad0ea95c770029

Deployed Bytecode

0x6060604052600436106100405763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663dc1fc2088114610042575b005b610040600160a060020a03600435811690602435166000600a4283604051918252600160a060020a03166c0100000000000000000000000002602082015260340160405190819003902060ff1681151561009857fe5b06905082600160a060020a03166352541b6834836040517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815260ff90911660048201526024016000604051808303818588803b15156100fc57600080fd5b6125ee5a03f1151561010d57600080fd5b50505050600030600160a060020a03163111151561012a57600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561016757600080fd5b5050505600a165627a7a723058204363b94059b3b631be00898b50f0ba953893158818f1b1bd36a7ebad0ea95c770029

Swarm Source

bzzr://4363b94059b3b631be00898b50f0ba953893158818f1b1bd36a7ebad0ea95c77

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.