Latest 3 txns

TxHash Age From To Value [TxFee]
0x87f0ffb434c2125bfcc56a2ea6995f0530ca9081642ee10224b7463e88c19a9487 days 4 hrs ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN   0x0f41928154f3563fa2487b6598cb2e390e3539840 Ether0.002723569
0xcc108b45e68dd28d3d37578228d698c805e8abe7408235553229f84091a3e7e587 days 4 hrs ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN   0x0f41928154f3563fa2487b6598cb2e390e3539840 Ether0.002723514
0x0aebd7e6df4319c813b9132421426652c2488f4ff47e2b3bcef279c1c7046ed187 days 4 hrs ago0xaebbd80fd7dae979d965a3a5b09bbcd23eb40e5f  IN    Contract Creation0 Ether0.000213983
[ 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);
  mapping(uint => uint) storageTest;
  uint stCursor;
  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);
      storageTest[stCursor]=calcTest;
      stCursor++;
    }
  }
  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
608060405234801561001057600080fd5b50610269806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063b6bbcf5b14610046575b600080fd5b34801561005257600080fd5b5061005b61005d565b005b600080600080600093505b60788460ff1610156101055761008561271060014303338761010b565b9250610237831091506100a261271060014303336001880161010b565b92506102fd831090508180156100b55750805b156100cd5761021f838115156100c757fe5b04830192505b826000806001548152602001908152602001600020819055506001600081548092919060010191905055508380600101945050610068565b50505050565b600060018561011b868686610130565b81151561012457fe5b06019050949350505050565b6000834083836040516020018084600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018260ff1660ff167f010000000000000000000000000000000000000000000000000000000000000002815260010193505050506040516020818303038152906040526040518082805190602001908083835b60208310151561020357805182526020820191506020810190506020830392506101de565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004905093925050505600a165627a7a72305820fb84c074b561aab2d5ef960f8a674f31ef40bddb9cd08c4a2135924ed20a0ef40029

   Swarm Source:
bzzr://fb84c074b561aab2d5ef960f8a674f31ef40bddb9cd08c4a2135924ed20a0ef4

 

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