ETH Price: $3,891.63 (-0.33%)

Contract

0x1C61D42EFAFe3c627998f2d53D897DBFD99d7fF9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set204530842024-08-04 5:25:47132 days ago1722749147IN
0x1C61D42E...FD99d7fF9
0 ETH0.000024441
Set90359462019-12-02 3:40:461839 days ago1575258046IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066721
Set88186412019-10-27 1:00:501875 days ago1572138050IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066721
Set87001872019-10-08 8:05:491894 days ago1570521949IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066661
Set82071772019-07-23 13:19:331970 days ago1563887973IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066851
Set81633462019-07-16 17:55:511977 days ago1563299751IN
0x1C61D42E...FD99d7fF9
0 ETH0.0017586420
Set80406182019-06-27 14:57:141996 days ago1561647434IN
0x1C61D42E...FD99d7fF9
0 ETH0.00021476
Set79823282019-06-18 12:37:142005 days ago1560861434IN
0x1C61D42E...FD99d7fF9
0 ETH0.000149163
Set79053842019-06-06 11:33:132017 days ago1559820793IN
0x1C61D42E...FD99d7fF9
0 ETH0.000406656.1
Set78059562019-05-21 22:43:172033 days ago1558478597IN
0x1C61D42E...FD99d7fF9
0 ETH0.00005011
Set77363682019-05-11 1:51:092044 days ago1557539469IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066661
Set76731982019-05-01 4:59:042054 days ago1556686744IN
0x1C61D42E...FD99d7fF9
0 ETH0.000174573
Set75216472019-04-07 14:40:402077 days ago1554648040IN
0x1C61D42E...FD99d7fF9
0 ETH0.00013322
Set74244842019-03-23 10:48:132092 days ago1553338093IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066791
Set74112132019-03-21 9:01:402095 days ago1553158900IN
0x1C61D42E...FD99d7fF9
0 ETH0.00010022
Set74111612019-03-21 8:48:362095 days ago1553158116IN
0x1C61D42E...FD99d7fF9
0 ETH0.000133842
Set73490762019-03-11 17:00:252104 days ago1552323625IN
0x1C61D42E...FD99d7fF9
0 ETH0.000133842
Set73076452019-03-05 6:06:032111 days ago1551765963IN
0x1C61D42E...FD99d7fF9
0 ETH0.000333645
Set72850762019-03-01 17:14:412114 days ago1551460481IN
0x1C61D42E...FD99d7fF9
0 ETH0.000051381
Set72400202019-02-19 10:54:012124 days ago1550573641IN
0x1C61D42E...FD99d7fF9
0 ETH0.000536398
Set72306592019-02-17 5:26:002127 days ago1550381160IN
0x1C61D42E...FD99d7fF9
0 ETH0.00033465
Set72211612019-02-14 23:02:362129 days ago1550185356IN
0x1C61D42E...FD99d7fF9
0 ETH0.000133842
Set72090622019-02-12 1:49:442132 days ago1549936184IN
0x1C61D42E...FD99d7fF9
0 ETH0.000066921
Set70972402019-01-20 7:27:122155 days ago1547969232IN
0x1C61D42E...FD99d7fF9
0 ETH0.000149543
Set70972402019-01-20 7:27:122155 days ago1547969232IN
0x1C61D42E...FD99d7fF9
0 ETH0.000070753
View all transactions

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Nicks

Compiler Version
v0.4.20-nightly.2018.1.29+commit.a668b9de

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.18;

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);

  function Nicks () public {
  }

  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) {
      Unset(oldNick, owner);
      delete ownerOfNick[oldNick];
    }

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

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

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

    Unset(oldNick, owner);

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

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_nick","type":"string"}],"name":"set","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"}]

6060604052341561000f57600080fd5b6108ae8061001e6000396000f3006060604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634ed3885e8114610066578063920ffa26146100b9578063a59aef4e14610126578063bbcbefd0146101bc575b600080fd5b341561007157600080fd5b6100b760046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506101cf95505050505050565b005b34156100c457600080fd5b61010a60046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104ac95505050505050565b604051600160a060020a03909116815260200160405180910390f35b341561013157600080fd5b610145600160a060020a0360043516610524565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610181578082015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101c757600080fd5b6100b76105f0565b60008060028351116101e057600080fd5b60006101eb846104ac565b600160a060020a0316146101fe57600080fd5b505033600160a060020a0381166000908152602081905260408120805490916002600183161561010002600019019092169190910411156103655781600160a060020a031681604051808280546001816001161561010002031660029004801561029f5780601f1061027d57610100808354040283529182019161029f565b820191906000526020600020905b81548152906001019060200180831161028b575b505091505060405180910390207fc5b1e78906cea6c780f8b9ad00acbd3678a664f6146c97d3b1a6562a1cd885bb60405160405180910390a360018160405180828054600181600116156101000203166002900480156103365780601f10610314576101008083540402835291820191610336565b820191906000526020600020905b815481529060010190602001808311610322575b50509283525050602001604051908190039020805473ffffffffffffffffffffffffffffffffffffffff191690555b600160a060020a038216600090815260208190526040902083805161038e92916020019061078e565b50816001846040518082805190602001908083835b602083106103c25780518252601f1990920191602091820191016103a3565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051908190039020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039283161790558216836040518082805190602001908083835b6020831061044f5780518252601f199092019160209182019101610430565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390207f496595ced95720268cf8bc60bae3f35024ff2a130f73ac4e20f5c1eaca35db9960405160405180910390a3505050565b60006001826040518082805190602001908083835b602083106104e05780518252601f1990920191602091820191016104c1565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405190819003902054600160a060020a031692915050565b61052c61080c565b60008083600160a060020a0316600160a060020a031681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105e45780601f106105b9576101008083540402835291602001916105e4565b820191906000526020600020905b8154815290600101906020018083116105c757829003601f168201915b50505050509050919050565b600160a060020a03331660009081526020819052604081205481906002600019610100600184161502019091160481901161062a57600080fd5b505033600160a060020a03811660008181526020819052604090819020919082905180828054600181600116156101000203166002900480156106a45780601f106106825761010080835404028352918201916106a4565b820191906000526020600020905b815481529060010190602001808311610690575b505091505060405180910390207fc5b1e78906cea6c780f8b9ad00acbd3678a664f6146c97d3b1a6562a1cd885bb60405160405180910390a3600181604051808280546001816001161561010002031660029004801561073b5780601f1061071957610100808354040283529182019161073b565b820191906000526020600020905b815481529060010190602001808311610727575b50509283525050602001604051908190039020805473ffffffffffffffffffffffffffffffffffffffff19169055600160a060020a038216600090815260208190526040812061078a9161081e565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106107cf57805160ff19168380011785556107fc565b828001600101855582156107fc579182015b828111156107fc5782518255916020019190600101906107e1565b50610808929150610865565b5090565b60206040519081016040526000815290565b50805460018160011615610100020316600290046000825580601f106108445750610862565b601f0160209004906000526020600020908101906108629190610865565b50565b61087f91905b80821115610808576000815560010161086b565b905600a165627a7a7230582047cd99d0206860d927c77e518a3dba574f0a45df269347bd759ae47b4c5a98960029

Deployed Bytecode

0x6060604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416634ed3885e8114610066578063920ffa26146100b9578063a59aef4e14610126578063bbcbefd0146101bc575b600080fd5b341561007157600080fd5b6100b760046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506101cf95505050505050565b005b34156100c457600080fd5b61010a60046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104ac95505050505050565b604051600160a060020a03909116815260200160405180910390f35b341561013157600080fd5b610145600160a060020a0360043516610524565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610181578082015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101c757600080fd5b6100b76105f0565b60008060028351116101e057600080fd5b60006101eb846104ac565b600160a060020a0316146101fe57600080fd5b505033600160a060020a0381166000908152602081905260408120805490916002600183161561010002600019019092169190910411156103655781600160a060020a031681604051808280546001816001161561010002031660029004801561029f5780601f1061027d57610100808354040283529182019161029f565b820191906000526020600020905b81548152906001019060200180831161028b575b505091505060405180910390207fc5b1e78906cea6c780f8b9ad00acbd3678a664f6146c97d3b1a6562a1cd885bb60405160405180910390a360018160405180828054600181600116156101000203166002900480156103365780601f10610314576101008083540402835291820191610336565b820191906000526020600020905b815481529060010190602001808311610322575b50509283525050602001604051908190039020805473ffffffffffffffffffffffffffffffffffffffff191690555b600160a060020a038216600090815260208190526040902083805161038e92916020019061078e565b50816001846040518082805190602001908083835b602083106103c25780518252601f1990920191602091820191016103a3565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051908190039020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039283161790558216836040518082805190602001908083835b6020831061044f5780518252601f199092019160209182019101610430565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390207f496595ced95720268cf8bc60bae3f35024ff2a130f73ac4e20f5c1eaca35db9960405160405180910390a3505050565b60006001826040518082805190602001908083835b602083106104e05780518252601f1990920191602091820191016104c1565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405190819003902054600160a060020a031692915050565b61052c61080c565b60008083600160a060020a0316600160a060020a031681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105e45780601f106105b9576101008083540402835291602001916105e4565b820191906000526020600020905b8154815290600101906020018083116105c757829003601f168201915b50505050509050919050565b600160a060020a03331660009081526020819052604081205481906002600019610100600184161502019091160481901161062a57600080fd5b505033600160a060020a03811660008181526020819052604090819020919082905180828054600181600116156101000203166002900480156106a45780601f106106825761010080835404028352918201916106a4565b820191906000526020600020905b815481529060010190602001808311610690575b505091505060405180910390207fc5b1e78906cea6c780f8b9ad00acbd3678a664f6146c97d3b1a6562a1cd885bb60405160405180910390a3600181604051808280546001816001161561010002031660029004801561073b5780601f1061071957610100808354040283529182019161073b565b820191906000526020600020905b815481529060010190602001808311610727575b50509283525050602001604051908190039020805473ffffffffffffffffffffffffffffffffffffffff19169055600160a060020a038216600090815260208190526040812061078a9161081e565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106107cf57805160ff19168380011785556107fc565b828001600101855582156107fc579182015b828111156107fc5782518255916020019190600101906107e1565b50610808929150610865565b5090565b60206040519081016040526000815290565b50805460018160011615610100020316600290046000825580601f106108445750610862565b601f0160209004906000526020600020908101906108629190610865565b50565b61087f91905b80821115610808576000815560010161086b565b905600a165627a7a7230582047cd99d0206860d927c77e518a3dba574f0a45df269347bd759ae47b4c5a98960029

Swarm Source

bzzr://47cd99d0206860d927c77e518a3dba574f0a45df269347bd759ae47b4c5a9896

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.