Contract 0x4A261669208347Bf4f47A565edD166C609B84797

 
Txn Hash
Block
From
To
Value
0xb3a8344f98cb57da7027cda0bd060bf3c5aca5bad8da55900610b4c93515531b112306392020-11-10 15:40:58114 days 6 hrs ago0x37d320fdf9e2e8760da089f66a9c50d45588e1a2 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.00220686753
0xdf9a5252928d26b50f00999c9d61efc967c2465f7b399cc2c473dd38f041121e106017512020-08-05 19:53:57211 days 2 hrs ago0x37d320fdf9e2e8760da089f66a9c50d45588e1a2 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.00367877433
0x92e07a2983f9058305350b308a7d26edf830a104be7b60a0925c02c5a555ebb896302392020-03-08 10:23:08361 days 11 hrs ago0x08b363b04dacda2224f77d4bdc814faabc2e499e IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.00034175
0x0e9fa4a027ac7f6f954761d6c3d26ddd9796c9238f4ca91936483914c72f50d992221582020-01-05 18:58:52424 days 3 hrs ago0x204d24b11a9d51956f6b0950048a72b3be2791ef IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000683521
0xac79c2fb36629041ed5d85065260e946fba751850011c7bddd3b0a52d27c2c9789267032019-11-13 13:35:28477 days 8 hrs ago0x7d4c9d68e1e3f8b4213ef499134d497a8385a552 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000671521
0x9e06e273092fdd93103bed621096d5c208a96bffcb3f5ec374d22b3b4078fb7383958252019-08-21 20:28:42561 days 1 hr ago0xab01d870fcd93a527b9241fe003eb3bf98b6b76c IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000866321.3
0x78a14405a8507c5552118c208a00d248df307f4ef4ccf1da7a3b820471e0313082194722019-07-25 11:15:02588 days 10 hrs ago0x757c84324e4d2ae5b7a183ca7586d47baad021ae IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0013340820
0x0a4e7e48de86ca428ea2443a094e2f6c8d898b23ae10db2f9606772dcd6912fb82026572019-07-22 20:35:58591 days 1 hr ago0xdcce6ef64c01d91b23d7855b45b69cd4de96c1e6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000249890.5
0xb29cf25ee9a9baebc8d490e35a5db592917207f59c605e2fbadd40f1d57ff28881886112019-07-20 16:17:38593 days 5 hrs ago0xf81e5da0362e3b509636f4d1706f1be3d802237b IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.000066961
0x89be281c26f5a16dbcc38fd3c1197597df9e98c5cf192ce04a3c5fb068fdc25581853062019-07-20 4:12:47593 days 17 hrs ago0x37d320fdf9e2e8760da089f66a9c50d45588e1a2 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000501061
0xbd15d422d7a0634c046620ae0739443b3676c151e8d1ac97c36c0d8768ecafa081747802019-07-18 12:46:31595 days 9 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0002236473
0x2b49dd6848401cb623c8775e524975a24a468d3231e8dc4676ff3464c40fa58281747372019-07-18 12:36:59595 days 9 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0002232633
0xd2ea95ce5fa0ecc4112fc02c243bceec7ac0599534fc891e93a23dd8d3b11e0181718582019-07-18 1:57:21595 days 20 hrs ago0x058f9b12d2681ca8a8e41b78b8c5fcc552b325b4 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000668321
0x441967302e74958c6c825715575ff143e0d165307095ebc4a8cfe7bc3c895dea81238632019-07-10 13:49:44603 days 8 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0001490982
0xe1ed1e5fbae5b3dbcea0a3bb4c09d2170230430cd293fe1e4a6b085f1130553f81204502019-07-10 1:10:52603 days 20 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0003556364
0x082c7bf5918545187096b238357f672f81788ed25bc78c8bf2969e9b75b2fe6981177382019-07-09 14:56:28604 days 7 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.00073834211
0x12e896647ea3b497f0f555c951f0ad453cb80ced9c3854feef9a668562241f3e81176762019-07-09 14:42:18604 days 7 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0005359528
0x627faafce6d92018e241e0c589c028e1e9cd76226680ae1332821cc67f13f6f581174562019-07-09 13:53:01604 days 8 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.000284635
0xf658163c781abc03dd079df84575b90131a14690ded21bf8c33ed224775f375381173722019-07-09 13:33:43604 days 8 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0002671113
0xda75fba548d995527a2392c6442540f57da25b077ad76d8c8ae66b985ac2db0181124702019-07-08 19:24:11605 days 2 hrs ago0x8c3ba428cf307190dcc82e0d9d0e91e256d4955e IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000668961
0x7fdb42a366a1606d1b15987d72062f2e9bd114473ff51d8be6c8b221a581b24781035332019-07-07 10:04:55606 days 12 hrs ago0x1350cc56a9bf83634f25a1cd63a92fd0cf809501 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0000670241
0x8f04691660833a7387ed27dcf113d89c98387008dd81804aa0fb2f6dd1a28aa180525082019-06-29 11:28:56614 days 10 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.000241953
0x13dc79c68c5571d10acb730e35d207bafb2dfd3f9a8d3df250b2a2a88f71398780508592019-06-29 5:18:34614 days 16 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0002656173
0x250c30825081a5e6db393d5ff7989108dc860a90968f3f11f193ca7bd28adf6780507642019-06-29 4:55:30614 days 17 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0001076553
0x6390f5b9c2a1bde3b7eae061bf4bc66bc53ad85340031ec1d617bfd0c9cdba4080505952019-06-29 4:23:17614 days 17 hrs ago0xb211f2204108bee1c3fc57bb8f319245d9da29c6 IN  0x4a261669208347bf4f47a565edd166c609b847970 Ether0.0002613933
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Nicks

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-06-04
*/

pragma solidity ^0.4.24;

contract Nicks {
  mapping (address => string) private nickOfOwner;
  mapping (string => address) private ownerOfNick;

  event Set (string indexed _nick, address indexed _owner);
  event Unset (string indexed _nick, address indexed _owner);

  constructor () public {
	contractOwner = msg.sender;
  }
  
  address public contractOwner; 
  

modifier onlyOwner() {
		require(contractOwner == msg.sender);
		_;
	}

	
  function nickOf (address _owner) public view returns (string _nick) {
    return nickOfOwner[_owner];
  }

  function ownerOf (string _nick) public view returns (address _owner) {
    return ownerOfNick[_nick];
  }

  function set (string _nick) public {
    require(bytes(_nick).length > 2);
    require(ownerOf(_nick) == address(0));

    address owner = msg.sender;
    string storage oldNick = nickOfOwner[owner];

    if (bytes(oldNick).length > 0) {
      emit Unset(oldNick, owner);
      delete ownerOfNick[oldNick];
    }

    nickOfOwner[owner] = _nick;
    ownerOfNick[_nick] = owner;
    emit Set(_nick, owner);
  }

  function unset () public {
    require(bytes(nickOfOwner[msg.sender]).length > 0);

    address owner = msg.sender;
    string storage oldNick = nickOfOwner[owner];

    emit Unset(oldNick, owner);

    delete ownerOfNick[oldNick];
    delete nickOfOwner[owner];
  }

  
  

/////////////////////////////////
/// USEFUL FUNCTIONS ///
////////////////////////////////

/* Fallback function to accept all ether sent directly to the contract */

    function() payable public
    {    }
	
	
	function withdrawEther() public onlyOwner {
		require(address(this).balance > 0);
		
        contractOwner.transfer(address(this).balance);
    }
	
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_nick","type":"string"}],"name":"set","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_nick","type":"string"}],"name":"ownerOf","outputs":[{"name":"_owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"nickOf","outputs":[{"name":"_nick","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_nick","type":"string"},{"indexed":true,"name":"_owner","type":"address"}],"name":"Set","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_nick","type":"string"},{"indexed":true,"name":"_owner","type":"address"}],"name":"Unset","type":"event"}]

608060405234801561001057600080fd5b5033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c5a806100616000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634ed3885e1461007a5780637362377b146100e3578063920ffa26146100fa578063a59aef4e146101a3578063bbcbefd01461025f578063ce606ee014610276575b005b34801561008657600080fd5b506100e1600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506102cd565b005b3480156100ef57600080fd5b506100f861066d565b005b34801561010657600080fd5b50610161600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610771565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101af57600080fd5b506101e4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610806565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610224578082015181840152602081019050610209565b50505050905090810190601f1680156102515780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561026b57600080fd5b506102746108e6565b005b34801561028257600080fd5b5061028b610b1b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600283511115156102e057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff1661030184610771565b73ffffffffffffffffffffffffffffffffffffffff1614151561032357600080fd5b3391506000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008180546001816001161561010002031660029004905011156104c5578173ffffffffffffffffffffffffffffffffffffffff168160405180828054600181600116156101000203166002900480156103f75780601f106103d55761010080835404028352918201916103f7565b820191906000526020600020905b8154815290600101906020018083116103e3575b505091505060405180910390207fc5b1e78906cea6c780f8b9ad00acbd3678a664f6146c97d3b1a6562a1cd885bb60405160405180910390a3600181604051808280546001816001161561010002031660029004801561048e5780601f1061046c57610100808354040283529182019161048e565b820191906000526020600020905b81548152906001019060200180831161047a575b5050915050908152602001604051809103902060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b826000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610517929190610b41565b50816001846040518082805190602001908083835b602083101515610551578051825260208201915060208101905060208303925061052c565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310151561060f57805182526020820191506020810190506020830392506105ea565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390207f496595ced95720268cf8bc60bae3f35024ff2a130f73ac4e20f5c1eaca35db9960405160405180910390a3505050565b3373ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156106c957600080fd5b60003073ffffffffffffffffffffffffffffffffffffffff16311115156106ef57600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015801561076e573d6000803e3d6000fd5b50565b60006001826040518082805190602001908083835b6020831015156107ab5780518252602082019150602081019050602083039250610786565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60606000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108da5780601f106108af576101008083540402835291602001916108da565b820191906000526020600020905b8154815290600101906020018083116108bd57829003601f168201915b50505050509050919050565b60008060008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080546001816001161561010002031660029004905011151561094a57600080fd5b3391506000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508173ffffffffffffffffffffffffffffffffffffffff16816040518082805460018160011615610100020316600290048015610a005780601f106109de576101008083540402835291820191610a00565b820191906000526020600020905b8154815290600101906020018083116109ec575b505091505060405180910390207fc5b1e78906cea6c780f8b9ad00acbd3678a664f6146c97d3b1a6562a1cd885bb60405160405180910390a36001816040518082805460018160011615610100020316600290048015610a975780601f10610a75576101008083540402835291820191610a97565b820191906000526020600020905b815481529060010190602001808311610a83575b5050915050908152602001604051809103902060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b179190610bc1565b5050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b8257805160ff1916838001178555610bb0565b82800160010185558215610bb0579182015b82811115610baf578251825591602001919060010190610b94565b5b509050610bbd9190610c09565b5090565b50805460018160011615610100020316600290046000825580601f10610be75750610c06565b601f016020900490600052602060002090810190610c059190610c09565b5b50565b610c2b91905b80821115610c27576000816000905550600101610c0f565b5090565b905600a165627a7a723058202954e0d91606a16f27fff5935b0d1c186a885a3050c4b37329da98747c200b9d0029

Swarm Source

bzzr://2954e0d91606a16f27fff5935b0d1c186a885a3050c4b37329da98747c200b9d
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.