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
Size: 16
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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 .
string
implementation allows for all types of URLsget_url(address addr) returns (string)
(no gas)
set_url(string url)
(gas usage depends on URL size)
url
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];
}
v0.2.0-2016-01-24-194679f via https://chriseth.github.io/browser-solidity/