ConsenSys/addresstourl

Name: addresstourl

Owner: ConsenSys

Description: Ethereum contract for mapping Ethereum addresses to URLs

Created: 2016-01-25 23:42:10.0

Updated: 2016-12-03 01:53:13.0

Pushed: 2016-01-30 01:22:20.0

Homepage:

Size: 16

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

About

The AddressToUrl contract is an Ethereum contract that maps Ethereum addresses to URLs. The transaction sender can set and clear his, and only his, URL entry. The data is public, so that anyone can obtain a URL for an Ethereum address (assuming the mapping exists).

The contract is at address 0xf94e9f9657dcbbe991b175d8a0433cd20704093e .

Features
API and gas estimate

get_url(address addr) returns (string) (no gas)

set_url(string url) (gas usage depends on URL size)

Source code
ract AddressToUrl {

mapping (address => string) urls;

function AddressToUrl() {
}

function set_url(string url) {
    urls[msg.sender] = url;
}

function get_url(address addr) returns (string) {
    return urls[addr];
}

Compiler version

v0.2.0-2016-01-24-194679f via https://chriseth.github.io/browser-solidity/

See also

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.