{"id":21280964,"url":"https://github.com/consensysmesh/addresstourl","last_synced_at":"2025-07-11T10:33:18.612Z","repository":{"id":87483108,"uuid":"50389137","full_name":"ConsenSysMesh/addresstourl","owner":"ConsenSysMesh","description":"Ethereum contract for mapping Ethereum addresses to URLs","archived":false,"fork":false,"pushed_at":"2016-01-30T01:22:20.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":7,"subscribers_count":12,"default_branch":"master","last_synced_at":"2023-02-27T00:41:24.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConsenSysMesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-25T23:42:10.000Z","updated_at":"2023-04-23T11:13:45.502Z","dependencies_parsed_at":"2023-04-23T11:17:16.996Z","dependency_job_id":null,"html_url":"https://github.com/ConsenSysMesh/addresstourl","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Faddresstourl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Faddresstourl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Faddresstourl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Faddresstourl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConsenSysMesh","download_url":"https://codeload.github.com/ConsenSysMesh/addresstourl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225715945,"owners_count":17512908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T10:43:19.334Z","updated_at":"2024-11-21T10:43:19.916Z","avatar_url":"https://github.com/ConsenSysMesh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\nThe 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).\n\nThe contract is at address [0xf94e9f9657dcbbe991b175d8a0433cd20704093e](https://etherchain.org/account/0xf94e9f9657dcbbe991b175d8a0433cd20704093e) .\n\n## Features\n* generic `string` implementation allows for all types of URLs\n* immortal (no one can delete the contract)\n* written in Solidity\n\n## API and gas estimate\n``get_url(address addr) returns (string)`` (no gas)\n- Gets a URL for an Ethereum address. If the entry does not exist, returns an empty string.\n\n``set_url(string url)`` (gas usage depends on URL size)\n- Sets the sender's URL to ``url``\n\n## Source code\n\n```\ncontract AddressToUrl {\n\n    mapping (address =\u003e string) urls;\n\n    function AddressToUrl() {\n    }\n\n    function set_url(string url) {\n        urls[msg.sender] = url;\n    }\n\n    function get_url(address addr) returns (string) {\n        return urls[addr];\n    }\n}\n```\n\n## Compiler version\nv0.2.0-2016-01-24-194679f via https://chriseth.github.io/browser-solidity/\n\n## See also\n* [AddressToIP](http://consensys.github.io/addresstoip/) - mapping Ethereum addresses to IP addresses\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsensysmesh%2Faddresstourl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconsensysmesh%2Faddresstourl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsensysmesh%2Faddresstourl/lists"}