Latest 6 txns

TxHash Age From To Value [TxFee]
0x5624ea1ac133e6a2d83b405f1695d27692a6addcbeb8b9c6cebb43900e8bb55a12 days 20 hrs ago0xc0a7d593239fe96dc3f89905ccebb9e5caf457c8  IN   0x16a5c2b64a06ffde173e63313a9c438e958789c80 Ether0.000036686
0x074bd09796e1bd84800246396f781c83b8699353e34142aa765a12455049af3912 days 20 hrs ago0xc0a7d593239fe96dc3f89905ccebb9e5caf457c8  IN   0x16a5c2b64a06ffde173e63313a9c438e958789c80 Ether0.000032204
0x63288483dff8c8aa388213f784dad6b0c5287d790b5c15ed814658f2e81b02d012 days 20 hrs ago0xc0a7d593239fe96dc3f89905ccebb9e5caf457c8  IN   0x16a5c2b64a06ffde173e63313a9c438e958789c80 Ether0.000024171
0x970d7b1b082e7b1801425c9de5e23255df750d35d102ea8f96c994a333f4b09012 days 20 hrs ago0xc0a7d593239fe96dc3f89905ccebb9e5caf457c8  IN   0x16a5c2b64a06ffde173e63313a9c438e958789c80 Ether0.000023765
0x5ce3f7ccd8e671979b9dbfc6dc5d8188a755a0b2df21e30808d380c43953674312 days 20 hrs ago0xc0a7d593239fe96dc3f89905ccebb9e5caf457c8  IN   0x16a5c2b64a06ffde173e63313a9c438e958789c81 Ether0.000043431
0xc727a7c3581e066ed95c3a64aa2245ad893f85b193426852b369963e649bedda12 days 20 hrs ago0xc0a7d593239fe96dc3f89905ccebb9e5caf457c8  IN    Contract Creation0 Ether0.000319022
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0x5624ea1ac133e6a2d83b405f1695d27692a6addcbeb8b9c6cebb43900e8bb55a1002917912 days 20 hrs ago0x16a5c2b64a06ffde173e63313a9c438e958789c80xc0a7d593239fe96dc3f89905ccebb9e5caf457c80.5 Ether
0x074bd09796e1bd84800246396f781c83b8699353e34142aa765a12455049af391002916412 days 20 hrs ago0x16a5c2b64a06ffde173e63313a9c438e958789c80xc0a7d593239fe96dc3f89905ccebb9e5caf457c80.5 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: UnivinaContractHolder
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.25;

contract UnivinaContractHolder{
    
    address public owner;
    
    mapping(address => uint) private holders;

    constructor () public{
        owner = msg.sender;
    }
    
    event EventChangeHolder(address _from, address _to);
    event EventDepositHoler(address _holder, uint _amount);
    
    modifier onlyOwner()  {
        require(msg.sender == owner);
         _;
    }
    
   
    function updateHolder(address _to) public {
        
        emit EventChangeHolder(msg.sender, _to);
    }
    
    
    function Deposit() public payable{
        AddBalanceToHolder(msg.sender, msg.value);
    }

    
    function AddBalanceToHolder(address _dest, uint _amount) internal{
        
        require(_amount > 0);
        
        if(holders[_dest] > 0)
            holders[_dest] +=  _amount;
            
        holders[_dest] = _amount;
        
       emit EventDepositHoler(_dest, _amount);
    }
    

    function getFund() view public returns(uint balance){
        return address(this).balance;
    }
    
    
    function getBalanceHolder(address _address) view public returns(uint){
        return holders[_address];
    }
    
    
    function WithdrawFromOwner(uint _amount, address _dest) public onlyOwner returns(uint remainingBalance){
        
        require(address(this).balance > _amount );     
        
        _dest.transfer(_amount);    
        
        remainingBalance = address(this).balance;
    }
    
    
    function WithdrawFromUser(uint _amount, address _dest) public returns(uint remainingBalance){
        
        require(holders[msg.sender] >= _amount );   
        
        _dest.transfer(_amount);    
        
        holders[msg.sender] -= _amount;
        
        remainingBalance = holders[msg.sender];
    }
    
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"getBalanceHolder","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"updateHolder","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_dest","type":"address"}],"name":"WithdrawFromOwner","outputs":[{"name":"remainingBalance","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_dest","type":"address"}],"name":"WithdrawFromUser","outputs":[{"name":"remainingBalance","type":"uint256"}],"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":"getFund","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"Deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"_to","type":"address"}],"name":"EventChangeHolder","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_holder","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"EventDepositHoler","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b5060008054600160a060020a0319163317905561039a806100326000396000f3006080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166316eec45e811461008757806342719faa146100ba5780634d532497146100dd5780634e8d3e0e146101015780638da5cb5b146101255780638edd6eb614610156578063ed21248c1461016b575b600080fd5b34801561009357600080fd5b506100a8600160a060020a0360043516610173565b60408051918252519081900360200190f35b3480156100c657600080fd5b506100db600160a060020a036004351661018e565b005b3480156100e957600080fd5b506100a8600435600160a060020a03602435166101d4565b34801561010d57600080fd5b506100a8600435600160a060020a0360243516610239565b34801561013157600080fd5b5061013a6102aa565b60408051600160a060020a039092168252519081900360200190f35b34801561016257600080fd5b506100a86102b9565b6100db6102be565b600160a060020a031660009081526001602052604090205490565b60408051338152600160a060020a038316602082015281517f7b71e1c7e4f72713615fc2a1fd61206f994144152952784278b6e7d99c2ac59e929181900390910190a150565b60008054600160a060020a031633146101ec57600080fd5b303183106101f957600080fd5b604051600160a060020a0383169084156108fc029085906000818181858888f1935050505015801561022f573d6000803e3d6000fd5b5050303192915050565b3360009081526001602052604081205483111561025557600080fd5b604051600160a060020a0383169084156108fc029085906000818181858888f1935050505015801561028b573d6000803e3d6000fd5b5050336000908152600160205260409020805492909203918290555090565b600054600160a060020a031681565b303190565b6102c833346102ca565b565b600081116102d757600080fd5b600160a060020a038216600090815260016020526040812054111561031557600160a060020a03821660009081526001602052604090208054820190555b600160a060020a0382166000818152600160209081526040918290208490558151928352820183905280517f806d6cad74dfc657e73bf83597258d04c31eb467990b4c239a57e62940b51ff19281900390910190a150505600a165627a7a723058202da17d79f5a3b4286cb12eca641298c0301412479774161a6dff581d060a191a0029

   Swarm Source:
bzzr://2da17d79f5a3b4286cb12eca641298c0301412479774161a6dff581d060a191a

 

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