Latest 6 txns

TxHash Age From To Value [TxFee]
0xfe1a4f424f97ab8e39d52d19f660fe9a7a6d7e0e96f17ef5939f1ae09225d86724 days 11 hrs ago0xc813fb5089f319dfb9ecf7b7cc9b18a12ecb4b34  IN   0x5a8b024f544ed745afc4d980e403c5e0967e62df0 Ether0.000145004
0x0675bd294ae2d0adfe4666b16d174387766e973c4f4209930933c847af9e602124 days 16 hrs ago0x606686eb267a3ac2903e87af82db424d89e1b950  IN   0x5a8b024f544ed745afc4d980e403c5e0967e62df0 Ether0.000072822
0x7ff4bafb4f5c69b83b1077114c92b848f28f6b49d73363ddc3cb23637f3294bb25 days 42 mins ago0xf40a913683abd6f2bfa2511e31f8a73a4d7d1972  IN   0x5a8b024f544ed745afc4d980e403c5e0967e62df0 Ether0.00145132
0x8364e4970311f538a62e1ef11e274c8fe7bbffb27ca231c7d9393022d6d61d7925 days 12 hrs ago0xc735715c6b900c65a6929987b39d5f113adce2ec  IN   0x5a8b024f544ed745afc4d980e403c5e0967e62df0 Ether0.000218082
0x9b42ff4245cb7f546e9fd794452dde9a45e2bda1ddbd742d0455fd9535c35ecd26 days 17 hrs ago0x7918af2d8a4a43803779297abde15ac86db5c5bf  IN   0x5a8b024f544ed745afc4d980e403c5e0967e62df0 Ether0.000087438
0xe006f8b2d19c5c4f8c5d65499cb18d7190f673273fa183e7fdcacbbf58bc5f0726 days 17 hrs ago0x7918af2d8a4a43803779297abde15ac86db5c5bf  IN    Contract Creation0 Ether0.000570639
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 5 Internal Transactions

ParentTxHash Block Age From To Value
0xfe1a4f424f97ab8e39d52d19f660fe9a7a6d7e0e96f17ef5939f1ae09225d867471525324 days 11 hrs ago0x5a8b024f544ed745afc4d980e403c5e0967e62df0xa9b76b79e3254d7835401a8b43af2fac93a83f2d0 Ether
0x0675bd294ae2d0adfe4666b16d174387766e973c4f4209930933c847af9e6021471452624 days 16 hrs ago0x5a8b024f544ed745afc4d980e403c5e0967e62df0xa9b76b79e3254d7835401a8b43af2fac93a83f2d0 Ether
0x7ff4bafb4f5c69b83b1077114c92b848f28f6b49d73363ddc3cb23637f3294bb471220725 days 42 mins ago0x5a8b024f544ed745afc4d980e403c5e0967e62df0xa9b76b79e3254d7835401a8b43af2fac93a83f2d0 Ether
0x8364e4970311f538a62e1ef11e274c8fe7bbffb27ca231c7d9393022d6d61d79470940025 days 12 hrs ago0x5a8b024f544ed745afc4d980e403c5e0967e62df0xa9b76b79e3254d7835401a8b43af2fac93a83f2d0 Ether
0x9b42ff4245cb7f546e9fd794452dde9a45e2bda1ddbd742d0455fd9535c35ecd470196826 days 17 hrs ago0x5a8b024f544ed745afc4d980e403c5e0967e62df0xa9b76b79e3254d7835401a8b43af2fac93a83f2d0 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: TokenHolders
Compiler Text: v0.5.2+commit.1df8f40c
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity >0.4.99 <0.6.0;
pragma experimental ABIEncoderV2;

contract SantaClausToken {
  function balanceOf(address who) public view returns (uint256);
}

contract TokenHolders {
    
    string[] names;
    mapping(address => bool) registeredAddresses;

    SantaClausToken token;
    
    constructor(address _token) public {
        token = SantaClausToken(_token);
    }
    
    function registerName(string memory name) public {
        require(!registeredAddresses[msg.sender]);
        require(token.balanceOf(msg.sender) > 0);
        
        names.push(name);
        registeredAddresses[msg.sender] = true;
    }
    
    function getNames() public view returns(string[] memory) {
        // may fail to return if array is too large
        return names;
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"name","type":"string"}],"name":"registerName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getNames","outputs":[{"name":"","type":"string[]"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b50604051602080610815833981018060405261002f919081019061008a565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506100e5565b600061008282516100d3565b905092915050565b60006020828403121561009c57600080fd5b60006100aa84828501610076565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100de826100b3565b9050919050565b610721806100f46000396000f3fe608060405234801561001057600080fd5b5060043610610053576000357c0100000000000000000000000000000000000000000000000000000000900480630830602b14610058578063cd838f0f14610074575b600080fd5b610072600480360361006d9190810190610451565b610092565b005b61007c610259565b6040516100899190610589565b60405180910390f35b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515156100eb57600080fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401610164919061056e565b60206040518083038186803b15801561017c57600080fd5b505afa158015610190573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506101b49190810190610492565b1115156101c057600080fd5b60008190806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906101fd929190610342565b505060018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60606000805480602002602001604051908101604052809291908181526020016000905b82821015610339578382906000526020600020018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103255780601f106102fa57610100808354040283529160200191610325565b820191906000526020600020905b81548152906001019060200180831161030857829003601f168201915b50505050508152602001906001019061027d565b50505050905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061038357805160ff19168380011785556103b1565b828001600101855582156103b1579182015b828111156103b0578251825591602001919060010190610395565b5b5090506103be91906103c2565b5090565b6103e491905b808211156103e05760008160009055506001016103c8565b5090565b90565b600082601f83011215156103fa57600080fd5b813561040d610408826105d8565b6105ab565b9150808252602083016020830185838301111561042957600080fd5b610434838284610694565b50505092915050565b60006104498251610654565b905092915050565b60006020828403121561046357600080fd5b600082013567ffffffffffffffff81111561047d57600080fd5b610489848285016103e7565b91505092915050565b6000602082840312156104a457600080fd5b60006104b28482850161043d565b91505092915050565b6104c48161065e565b82525050565b60006104d582610611565b808452602084019350836020820285016104ee85610604565b60005b84811015610527578383038852610509838351610538565b925061051482610627565b91506020880197506001810190506104f1565b508196508694505050505092915050565b60006105438261061c565b8084526105578160208601602086016106a3565b610560816106d6565b602085010191505092915050565b600060208201905061058360008301846104bb565b92915050565b600060208201905081810360008301526105a381846104ca565b905092915050565b6000604051905081810181811067ffffffffffffffff821117156105ce57600080fd5b8060405250919050565b600067ffffffffffffffff8211156105ef57600080fd5b601f19601f8301169050602081019050919050565b6000602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061066982610670565b9050919050565b600061067b82610682565b9050919050565b600061068d82610634565b9050919050565b82818337600083830152505050565b60005b838110156106c15780820151818401526020810190506106a6565b838111156106d0576000848401525b50505050565b6000601f19601f830116905091905056fea265627a7a72305820f26c620b03deaebeeba30e1cf83c6944478469204f9ac87acf7134ee5b3cbffb6c6578706572696d656e74616cf50037000000000000000000000000a9b76b79e3254d7835401a8b43af2fac93a83f2d

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a9b76b79e3254d7835401a8b43af2fac93a83f2d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a9b76b79e3254d7835401a8b43af2fac93a83f2d


   Swarm Source:
bzzr://f26c620b03deaebeeba30e1cf83c6944478469204f9ac87acf7134ee5b3cbffb

 

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