Latest 2 txns

TxHash Age From To Value [TxFee]
0x56e9e8dc308f3459c37e656323df9056c5f12cf7ede12c22782c9d2689b650d088 days 6 hrs ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN   0x2a89e79f79be6c1f16c0c8aeb8de8169ac9d80390 Ether0.000687068
0xe316c24f2d00274f185319599013f861dbe03ae8fb8a8c4c32fa0ddfe134001788 days 10 hrs ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN    Contract Creation0 Ether0.000217391


[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: Test
Compiler Version: v0.4.25+commit.59dbf8f1
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.25;

contract Test{
  event Random(uint randomNumber);
  function benchmarkRandom() public{
    for(uint8 i=0;i<120;i++){
      uint calcTest=random(10000,block.number-1,msg.sender,i);
      bool b1=calcTest<567;
      calcTest=random(10000,block.number-1,msg.sender,i+1);
      bool b2=calcTest<765;
      if(b1&&b2){
        calcTest+=calcTest/543;
      }
      emit Random(calcTest);
    }
  }
  function maxRandom(uint blockn, address entropy, uint8 entropy2)
    internal
    returns (uint256 randomNumber)
  {
      return uint256(keccak256(
          abi.encodePacked(
            blockhash(blockn),
            entropy,entropy2)
      ));
  }
  function random(uint256 upper, uint256 blockn, address entropy, uint8 entropy2)
    internal
    returns (uint256 randomNumber)
  {
      return maxRandom(blockn, entropy,entropy2) % upper + 1;
  }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"benchmarkRandom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"randomNumber","type":"uint256"}],"name":"Random","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b50610275806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063b6bbcf5b14610046575b600080fd5b34801561005257600080fd5b5061005b61005d565b005b600080600080600093505b60788460ff16101561011157610085612710600143033387610117565b9250610237831091506100a2612710600143033360018801610117565b92506102fd831090508180156100b55750805b156100cd5761021f838115156100c757fe5b04830192505b7fbcf69e7223438137d9099bb71b1772c3eb2a5a8840750b247913cd6fd4d249d5836040518082815260200191505060405180910390a18380600101945050610068565b50505050565b600060018561012786868661013c565b81151561013057fe5b06019050949350505050565b6000834083836040516020018084600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018260ff1660ff167f010000000000000000000000000000000000000000000000000000000000000002815260010193505050506040516020818303038152906040526040518082805190602001908083835b60208310151561020f57805182526020820191506020810190506020830392506101ea565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004905093925050505600a165627a7a72305820ea463acfd7f7c02b419d0b2ebdb4d1136ee8c77df79cd8b9d50be1b590fe15af0029

   Swarm Source:
bzzr://ea463acfd7f7c02b419d0b2ebdb4d1136ee8c77df79cd8b9d50be1b590fe15af

 

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