Latest 25 transactions from a total of 179 transactions

TxHash Age From To Value [TxFee]
0xb24a981b631184876a39c8ffd8297648b8f2ca82bd213748b163c80f1cb30f9f49 days 3 hrs ago0x1bfb188597cac0641b214d7e5c0b3437741e8e4c  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0 Ether0.000021855
0x3cfe0070349f86a465719584673d5ef08fe74f336b56fa91c230a388f66bb05349 days 3 hrs ago0x1bfb188597cac0641b214d7e5c0b3437741e8e4c  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000038388
0xaf2e4bdaa125a0664af686527985326cabe80af8b9c3aa6984cb6a4bbe19666c311 days 8 hrs ago0xcbb908c2c07367c403b019090e3dede69af74da3  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0 Ether0.000022097
0x2f9aab26f3fa99bb4f0c924f66dbb247b7ba2d203cdc03493fb74247ec6a4807311 days 11 hrs ago0x0df0cc6576ed17ba870d6fc271e20601e3ee176e  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000053388
0xa50558c3523cc2f6a1128dc023f8f32f8d171970c610d05166491810283c7c29311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0 Ether0.00055352
0x2bce8bf524d66b9e7fb3f8ad3c9c358f81d0e1fd89a604076b1749ff10b2c9ff311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0 Ether0.0103288
0xdb685f07c7c08d25dac6a2965c750dbea5d540132d4c5439bce3d67224c8cb33311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xbf41fc4e9764d1810be9381033f06b82d2511aff232e3e32c2f0d19829916bfd311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xc5f891c28f270e8a0aba980f50e6c06448e709de69a69b3461ce749c9b23b1ed311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xe631a537a605f597831c1690d85d5082332564f4d5c9a3a8ccec776f6c455c0d311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xa0ab2052d4e69c818b3d4cb6069af6f0f707becd05586be99cbfb1ad8dd845e4311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x2b7ce15f6cef7a9bef338565239410a99fdc7aebae5e29a9ee2a96cfa5e6d067311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x03a6f88470f0efa1fc7e4e6f9c2b86d878b85c5e66cd2d3acb37f7648907421c311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x81d1502955553cc5d0ba1931d3fc7a9588ad408a2d0cbe4750b50f24efce6bfd311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x6e6ee36fabff986a5071f88c919ebf4c750f1207803f6fdd09a68dc5e3424732311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x77b7eea46ca1262b58dcbb315050a96bfc72facc5c6ead5d2201182dff65051d311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xc9455b11a82e730ecc6b4d4d2151b732277e78ad69e86353a3cc92488d707437311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xc145b833ce4e397e51082a605fbba7243e4de02b923336e3fd92f8cd0fa8e920311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x9d85ede6787121f63d344755e79ff58e6807b552033cd0341ab4b911e6087d8f311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x8a997fd0326a1efd5bc0eebd64399e165c3e68f28c180cf9e96c726ebfa82c41311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xc9e214fed59d91c524eb1fe68d9ea5270aa1766a4bfa02afea79a26eefd9c418311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x8cdb0dde825db06826c97e097d24fabf61c8cdff4c92bec756ae34f54b61c36d311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x2b92743351de28e0bd079d4a78b5048accf8c674c838956b4691ee4e2fa04ba8311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0x0ba3a52330ec1bf7321963d9967202d7f6d231876e2d6bcb9099598c34a2593f311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
0xf3c237aaaa363e1c3b49d746f001dd2a4a258ad0d5afe47916d37151c72b873b311 days 16 hrs ago0x0a00e55d83451a73a67d76f2188af4c4aefecd7a  IN   0x2f04558b21c318658a25b6e0e961897a69c2f65f0.01 Ether0.000086798
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 5 Internal Transactions

ParentTxHash Block Age From To Value
0x2bce8bf524d66b9e7fb3f8ad3c9c358f81d0e1fd89a604076b1749ff10b2c9ff3047896311 days 16 hrs ago0x2f04558b21c318658a25b6e0e961897a69c2f65f0x0a00e55d83451a73a67d76f2188af4c4aefecd7a0.0625 Ether
0xe0fdb81ecd9e386432ad5055ab8420e0e1e20b58ec3c40e088ea3f814b5da1003047860311 days 16 hrs ago0x2f04558b21c318658a25b6e0e961897a69c2f65f0x38349ab77efc329bfd751387497de3bcae6a775f0.0625 Ether
0x2ffe6dafde35bdb52f1e771b671967d901543fbf109545f140165f02a65a72083042175312 days 13 hrs ago0x2f04558b21c318658a25b6e0e961897a69c2f65f0x26df5283bfec29ad358d12f3b15b4ee0bcb35fbe0.0675 Ether
0x449c3ccb8cf6209a414ae8b8775ff67993fa9b8fc0b9e3418cc7187afb538ba53036377313 days 12 hrs ago0x2f04558b21c318658a25b6e0e961897a69c2f65f0x26df5283bfec29ad358d12f3b15b4ee0bcb35fbe0.0725 Ether
0x45a6fb4999be752c110d80c351e1fa6c651daa22775e713e1ab409ddc56397073036048313 days 13 hrs ago0x2f04558b21c318658a25b6e0e961897a69c2f65f0x26df5283bfec29ad358d12f3b15b4ee0bcb35fbe0.0775 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: chasetheace
Compiler Version: v0.4.21+commit.dfe3193c
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.21;

contract chasetheace {
    
    function chasetheace() {
        owner = msg.sender;
        currentDeckSize = 52;
        minTickets = 5;
        roundWinner = owner;
        ticketPrice = 0.01 ether;
        gameOn = 1;
    }

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    address public owner;
    
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
	
	mapping (uint => address) tickets;
	uint ticketPrice;
	uint currentTicket;
	uint currentDeckSize;
	uint randomNumber;
	uint minTickets;
	uint gameOn;
	uint canDraw;
	uint lastCard;
	uint totalTickets;
	address roundWinner;
	
	function viewInfo() view returns(uint, uint, uint, uint, uint, address) {
	    uint _jackpot = (totalTickets * ticketPrice / 4);
	    _jackpot = _jackpot * 3;
	    return (currentTicket, currentDeckSize, canDraw, lastCard, _jackpot, roundWinner);
	}
	
	function getTicket() payable {
	    require (canDraw == 0 && gameOn == 1 && msg.value == ticketPrice);
	    currentTicket++;
	    totalTickets++;
	    tickets[currentTicket] = msg.sender;
	    if (currentTicket > minTickets) {
	        randomNumber = (block.number + 1);
	    }
	}
	
	function revealWinner() external {
	    require (block.number > randomNumber && currentTicket > minTickets && canDraw == 0);
	    if (block.number - randomNumber <= 255) {
	    uint _randomNumber = uint(keccak256(block.blockhash(randomNumber))) % currentTicket + 1;
	    roundWinner = tickets[_randomNumber];
	    roundWinner.transfer((ticketPrice / 4) * currentTicket);
	    randomNumber = block.number + 1;
	    canDraw = 1;
	    currentTicket = 0;
	    }
	    else {
	        randomNumber = (block.number + 1);
	    }
	}
	
	function drawCard() external {
	    require (block.number > randomNumber && canDraw == 1);
	    uint _randomNumber = uint(keccak256(block.blockhash(randomNumber))) % currentDeckSize + 1;
	    if (_randomNumber == 1) {
	        roundWinner.transfer(this.balance);
	        gameOn = 1;
	        canDraw = 0;
	        randomNumber = 0;
	        totalTickets = 0;
	        roundWinner = owner;
	        currentDeckSize = 52;
	    }
	    else {
	    currentDeckSize--;
	    currentTicket = 0;
	    canDraw = 0;
	    lastCard = _randomNumber;
	    }
	}
    
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"drawCard","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"revealWinner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"viewInfo","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getTicket","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b60008054600160a060020a03338116600160a060020a0319928316179283905560346004556005600655600b80549092169216919091179055662386f26fc1000060025560016007556104e6806100676000396000f3006060604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632f5be23e811461007c5780636c699905146100915780638da5cb5b146100a4578063ae601480146100d3578063c002c4d614610127578063f2fde38b1461012f575b600080fd5b341561008757600080fd5b61008f61014e565b005b341561009c57600080fd5b61008f610242565b34156100af57600080fd5b6100b761033a565b604051600160a060020a03909116815260200160405180910390f35b34156100de57600080fd5b6100e6610349565b604051958652602086019490945260408086019390935260608501919091526080840152600160a060020a0390911660a083015260c0909101905180910390f35b61008f610397565b341561013a57600080fd5b61008f600160a060020a036004351661041f565b60006005544311801561016357506008546001145b151561016e57600080fd5b6004546005544060405190815260200160405190819003902081151561019057fe5b066001019050806001141561022557600b54600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156101d857600080fd5b6001600755600060088190556005819055600a81905554600b805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055603460045561023f565b600480546000190190556000600381905560085560098190555b50565b6000600554431180156102585750600654600354115b80156102645750600854155b151561026f57600080fd5b60ff6005544303111515610330576003546005544060405190815260200160405190819003902081151561029f57fe5b066001908101600081815260209290925260409182902054600b8054600160a060020a0392831673ffffffffffffffffffffffffffffffffffffffff19909116179081905560035460025493955091169260049092040280156108fc029151600060405180830381858888f19350505050151561031b57600080fd5b6001438101600555600855600060035561023f565b6001430160055550565b600054600160a060020a031681565b60008060008060008060006004600254600a540281151561036657fe5b60038054600454600854600954600b54939e929d50909b50995093909204029550600160a060020a03169350915050565b6008541580156103a957506007546001145b80156103b6575060025434145b15156103c157600080fd5b600380546001908101808355600a805483019055600090815260209190915260409020805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790556006549054111561041d57600143016005555b565b60005433600160a060020a0390811691161461043a57600080fd5b600160a060020a038116151561044f57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820df5151572c21f59ca82305471b44911b18c41371c99fbf1f2c8a436d37af065d0029

   Swarm Source:
bzzr://df5151572c21f59ca82305471b44911b18c41371c99fbf1f2c8a436d37af065d

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward