Contract 0x1e3941d8c05fffa7466216480209240cc26ea577

Contract Overview

Balance:
0 Ether
TxHash Block Age From To Value [TxFee]
0x4473ddb7af4fc9fecaa8ba1e951d311988728e1a7675d0d3b1faf1857ea3b3e34045568188 days 17 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000050217
0x459ba293f446a2136901977d3602365028926b6fb7f99c7ed18276b97f0415ef3866209216 days 47 mins ago0xe762d7cf08fb250c876f89f6c4aa33cce3c82bc6 IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000050153
0xdf84cd609a26dd9da00d4e5259c3d00a734e5ebd1dac2530a9033be53b5169033866209216 days 47 mins ago0xcc4a2df14269762daf0acc409f4bebbc07636c83 IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000050153
0x41edafa819367035c0405e9e88db3d804d89cd9457d103f30ec154be4c32c9653865848216 days 2 hrs ago0xcc4a2df14269762daf0acc409f4bebbc07636c83 IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000074541
0xa0ed8e4213bf812459ae31bfab5d096a9a3eb7cfb27a03d237c3bcb076ff681f3865836216 days 2 hrs ago0xe762d7cf08fb250c876f89f6c4aa33cce3c82bc6 IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000074541
0x96d32edf539e1642bea81e58e038be7495dd9394adaa986656edfb7ffc35e1ba3760516232 days 13 hrs ago0xebff76c18de8532b58bc983624ad748cc458fd62 IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000000000026
0xc1d3348345fffac9b6e176e077b8e2830a23a4d15bfea1f172551190115a29923756405233 days 2 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.0000050217
0xb265a89e9e76be081cb358c8e52cc54337137e294c94ff1016304f2c2a66fdf63754197233 days 10 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000050217
0x4944d4840d78dae210a79f1e68b0d51c94434cae588a6730e05a7c36d284bd543746923234 days 15 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000000000301
0xf26d32882db9c5f9632e85f1c109af34f8597e8cb019fe815f9c5305042fbd2c3740465235 days 16 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000050217
0x379772dbd9b9646c3b1d67eb1aa28b521a44ed02d0dd0d5650569e29a9802b103737551236 days 2 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.00001054557
0xb28d14b8d5f1b802e96aeba08dbe0d2865876dbaddd15d203ad029306c5ee7183733532236 days 17 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000012654684
0xa99a5fcc137d0436b2704bdc93ff80355560e48fa2fe0309b23e0fa569dc66f23733521236 days 17 hrs ago0x3a88916a49a85502cc7e3a3a9f07e070125a7c8b IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000012654684
0x78a8bb82ac5d507a420e4d9735fc66e7a4eda822056d0cb6baa0668214277aae3733126236 days 19 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.00001054557
0xd8745319ff826855a2177b22e95c4b265b296fcf4ffc30fd2753bd268b972e4f3728342237 days 14 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.00001054557
0xbb8fbf109475bafce0e55af3adf4aace37986adefac7c45c684481b759d6b22f3720179238 days 21 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000035181312
0x65b1264210c97f4cd3f59cbd6b4d1b7e1f20e364459a645b05f82153fa0099d93703139241 days 12 hrs ago0x3a88916a49a85502cc7e3a3a9f07e070125a7c8b IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000050217
0x185ce3c8b2d4c521b6fdf4abd5e9818ecbf4d031fff69076efbde09266b576f63703115241 days 12 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000200868
0x85e532dbb4adcd8ecde6c938a15b21afa9b27ec11129813b357b212c04923eaa3695409242 days 18 hrs ago0x3a88916a49a85502cc7e3a3a9f07e070125a7c8b IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000049924579
0xa5cf45b5c840761d4b2fb4642e1f93ba2023ecbc0f536fd74fb01a63485d67923695403242 days 18 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000049924579
0x712aa3b83511e413761a39bb40861ef7da87f5352aa2ee12d2d60c2e78b5aec83695388242 days 18 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000049924579
0xe122eff71478013ba8bbc4776b3f2ffc400f1978672856cf985aa3d6bc2e0c1d3695364242 days 18 hrs ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000049924579
0x499cf297044684359ac16f177130bbc701d268814c8ca4cedbed0f8ef6bd6a413695364242 days 18 hrs ago0x3a88916a49a85502cc7e3a3a9f07e070125a7c8b IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.000049924579
0x929f638a26be984e80ec92ccef3be75e7fba6d5ba0f36d97420694ca16e112ad3693216243 days 1 hr ago0x3a88916a49a85502cc7e3a3a9f07e070125a7c8b IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.00001054557
0x3e58162c1026c4e364a574a01a798c170d18ae0a8b91f2f1aa1c7e76c18997983693216243 days 1 hr ago0x6de76fb8fe3501912480c816c2ca76b4245202bd IN  0x1e3941d8c05fffa7466216480209240cc26ea5770 Ether0.00001054557
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value

Contract Source Code Verified (Exact Match)

Contract Name:
EndpointRegistry

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
No

Runs (Optimizer):
200

Contract Source Code

/*
 * This contract is a registry which maps the Ethereum Address to their
 *  endpoint i.e sockets.
 * The Ethereum address registers his address in this registry.
*/

pragma solidity ^0.4.11;

contract EndpointRegistry{
    string constant public contract_version = "0.2._";

    event AddressRegistered(address indexed eth_address, string socket);

    // Mapping of Ethereum Addresses => SocketEndpoints
    mapping (address => string) address_to_socket;
    // Mapping of SocketEndpoints => Ethereum Addresses
    mapping (string => address) socket_to_address;
    // list of all the Registered Addresses , still not used.
    address[] eth_addresses;

    modifier noEmptyString(string str)
    {
        require(equals(str, "") != true);
        _;
    }

    /*
     * @notice Registers the Ethereum Address to the Endpoint socket.
     * @dev Registers the Ethereum Address to the Endpoint socket.
     * @param string of socket in this format "127.0.0.1:40001"
     */
    function registerEndpoint(string socket)
        public
        noEmptyString(socket)
    {
        string storage old_socket = address_to_socket[msg.sender];

        // Compare if the new socket matches the old one, if it does just return
        if (equals(old_socket, socket)) {
            return;
        }

        // Put the ethereum address 0 in front of the old_socket,old_socket:0x0
        socket_to_address[old_socket] = address(0);
        address_to_socket[msg.sender] = socket;
        socket_to_address[socket] = msg.sender;
        AddressRegistered(msg.sender, socket);
    }

    /*
     * @notice Finds the socket if given an Ethereum Address
     * @dev Finds the socket if given an Ethereum Address
     * @param An eth_address which is a 20 byte Ethereum Address
     * @return A socket which the current Ethereum Address is using.
     */
    function findEndpointByAddress(address eth_address) public constant returns (string socket)
    {
        return address_to_socket[eth_address];
    }

    /*
     * @notice Finds Ethreum Address if given an existing socket address
     * @dev Finds Ethreum Address if given an existing socket address
     * @param string of socket in this format "127.0.0.1:40001"
     * @return An ethereum address
     */
    function findAddressByEndpoint(string socket) public constant returns (address eth_address)
    {
        return socket_to_address[socket];
    }

    function equals(string a, string b) internal pure returns (bool result)
    {
        if (keccak256(a) == keccak256(b)) {
            return true;
        }

        return false;
    }
}

Contract ABI

[{"constant":true,"inputs":[{"name":"eth_address","type":"address"}],"name":"findEndpointByAddress","outputs":[{"name":"socket","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"socket","type":"string"}],"name":"registerEndpoint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"socket","type":"string"}],"name":"findAddressByEndpoint","outputs":[{"name":"eth_address","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contract_version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"eth_address","type":"address"},{"indexed":false,"name":"socket","type":"string"}],"name":"AddressRegistered","type":"event"}]

Contract Creation Code

6060604052341561000f57600080fd5b6109a88061001e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063028a582e1461006757806308b5a85a14610119578063460123cf14610176578063b32c65c814610213575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506102a1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100de5780820151818401526020810190506100c3565b50505050905090810190601f16801561010b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561012457600080fd5b610174600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610387565b005b341561018157600080fd5b6101d1600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061070b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561021e57600080fd5b6102266107a0565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561026657808201518184015260208101905061024b565b50505050905090810190601f1680156102935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a96108c3565b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037b5780601f106103505761010080835404028352916020019161037b565b820191906000526020600020905b81548152906001019060200180831161035e57829003601f168201915b50505050509050919050565b600081600115156103a88260206040519081016040528060008152506107d9565b1515141515156103b757600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020915061049a828054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048f5780601f106104645761010080835404028352916020019161048f565b820191906000526020600020905b81548152906001019060200180831161047257829003601f168201915b5050505050846107d9565b156104a457610706565b600060018360405180828054600181600116156101000203166002900480156105045780601f106104e2576101008083540402835291820191610504565b820191906000526020600020905b8154815290600101906020018083116104f0575b5050915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090805190602001906105a79291906108d7565b50336001846040518082805190602001908083835b6020831015156105e157805182526020820191506020810190506020830392506105bc565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f3a62a9d7855df5303e50b0440124304fefafde7f677fc33787b784fc92cfa618846040518080602001828103825283818151815260200191508051906020019080838360005b838110156106cb5780820151818401526020810190506106b0565b50505050905090810190601f1680156106f85780820380516001836020036101000a031916815260200191505b509250505060405180910390a25b505050565b60006001826040518082805190602001908083835b6020831015156107455780518252602082019150602081019050602083039250610720565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6040805190810160405280600581526020017f302e322e5f00000000000000000000000000000000000000000000000000000081525081565b6000816040518082805190602001908083835b60208310151561081157805182526020820191506020810190506020830392506107ec565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916836040518082805190602001908083835b6020831015156108785780518252602082019150602081019050602083039250610853565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614156108b857600190506108bd565b600090505b92915050565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061091857805160ff1916838001178555610946565b82800160010185558215610946579182015b8281111561094557825182559160200191906001019061092a565b5b5090506109539190610957565b5090565b61097991905b8082111561097557600081600090555060010161095d565b5090565b905600a165627a7a72305820ab7c839e3005de9147938a2f21c4ec66f64e1675f8e41d299a4b647ded0621b50029

Swarm Source

bzzr://ab7c839e3005de9147938a2f21c4ec66f64e1675f8e41d299a4b647ded0621b5
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward