{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/EIPs/issues/961","repository_url":"https://api.github.com/repos/ethereum/EIPs","labels_url":"https://api.github.com/repos/ethereum/EIPs/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/EIPs/issues/961/comments","events_url":"https://api.github.com/repos/ethereum/EIPs/issues/961/events","html_url":"https://github.com/ethereum/EIPs/pull/961","id":310350394,"node_id":"MDExOlB1bGxSZXF1ZXN0MTc4NzQ1NDUz","number":961,"title":"Proposal for AddToken URI standard","user":{"login":"kylanhurt","id":6249205,"node_id":"MDQ6VXNlcjYyNDkyMDU=","avatar_url":"https://avatars3.githubusercontent.com/u/6249205?v=4","gravatar_id":"","url":"https://api.github.com/users/kylanhurt","html_url":"https://github.com/kylanhurt","followers_url":"https://api.github.com/users/kylanhurt/followers","following_url":"https://api.github.com/users/kylanhurt/following{/other_user}","gists_url":"https://api.github.com/users/kylanhurt/gists{/gist_id}","starred_url":"https://api.github.com/users/kylanhurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylanhurt/subscriptions","organizations_url":"https://api.github.com/users/kylanhurt/orgs","repos_url":"https://api.github.com/users/kylanhurt/repos","events_url":"https://api.github.com/users/kylanhurt/events{/privacy}","received_events_url":"https://api.github.com/users/kylanhurt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-01T20:12:48Z","updated_at":"2018-07-17T11:39:32Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ethereum/EIPs/pulls/961","html_url":"https://github.com/ethereum/EIPs/pull/961","diff_url":"https://github.com/ethereum/EIPs/pull/961.diff","patch_url":"https://github.com/ethereum/EIPs/pull/961.patch"},"body":"---\r\n    eip: 961\r\n    title: URL Format for Tokens\r\n    status: Active\r\n    type: Standards Track\r\n    author: Kylan Hurt <kylan@edgesecure.co>, Eliran Zach <eliran@edgesecure.co>\r\n    created: 2018-04-01\r\n    requires: 20, 137, 831\r\n---\r\n\r\n## Simple Summary\r\nA standard way of representing token information, facilitating the process of adding ERC #20 tokens as URLs on the application layer.\r\n\r\n## Abstract\r\nURLs embedded in QR-codes, hyperlinks in web-pages, emails or chat messages provide for robust cross-application signaling between very loosely coupled applications. A standardized URL format for fundamental token information allows for instant invocation of the user's preferred wallet application (even if it is a webapp or a swarm đapp), with the correct parameterization of the token's information only to be confirmed by the user.\r\n\r\n## Motivation\r\nThe convenience of representing payment requests by standard URLs has been a significant factor in the cryptocurrency. Extending this convenient mechanism to support embedding of basic token information would help to facilitate the usage of Ethereum-based tokens. In particular, QR-code embedded URLs could be generated by token-generators to help users track the tokens via any wallet software that has the ability to scan QR codes (particularly mobile wallets). For example, rather than users needing to find the contract address and number of decimal places for a given token through an online directory, they could simply scan a QR-code provided by the token generator with this data embedded. The wallet software could then automatically add the tokens to the user's wallet. This would improve the user experience associated with purchasing and holding tokens as a digital asset.\r\n\r\n\r\n## Specification\r\n\r\n### Syntax\r\nToken data URLs contain \"ethereum\" in their schema (protocol) part and are constructed as follows:\r\n\r\n    request                 = \"ethereum\" \":\" \"token_info-\" target_address \"@\" chain_id [ \"?\" parameters ]\r\n    target_address          = ethereum_address\r\n    chain_id                = 1*DIGIT\r\n    ethereum_address        = ( \"0x\" 40*40HEXDIG ) / ENS_NAME\r\n    parameters              = parameter *( \"&\" parameter )\r\n    parameter               = key \"=\" value\r\n    key                     = \"symbol\" / \"decimals\" / \"name\" / \"type\"\r\n    value                   = STRING / number (0-18) / STRING / STRING\r\n\r\nWhere all of the key + value pairs are optional, allowing for maximum flexibility on the application layer.\r\n\r\n\r\n### Semantics\r\n\r\n`target_address` is mandatory and denotes the contract address with which the user is asked to interact.\r\n\r\n`chain_id` is mandatory and contains the decimal chain ID, such that transactions on various test- and private networks can be requested.\r\n\r\nIf using ENS names instead of hexadecimal addresses, the resolution is up to the payer, at any time between receiving the URL and sending the transaction. Hexadecimal addresses always take precedence over ENS names, i.e. even if there exists a matching ENS name consisting of 40 hexadecimal digits, it should never be resolved. Instead, the hexadecimal address should be used directly.\r\n\r\n1. `symbol` (optional) is the token symbol (STRING) - Defaults to \"SYM\"\r\n2. `decimals` (optional) is a whole number between 0 and 18 (inclusive) - Defaults to 18\r\n3. `name` (optional) is a more user-friendly name (STRING) for the token, typically the name of the project that generated the tokens - Defaults to the value of symbol\r\n4. `type` (optional) is the type of token (STRING), e.g. \"ERC20\". - Defaults to \"ERC20\"\r\n\r\nNote: `STRING` is a URL-encoded unicode string of arbitrary length, where delimiters and the percentage symbol (`%`) are mandatorily hex-encoded with a `%` prefix.\r\n\r\n## Rationale\r\nThe proposed format is chosen to resemble `ethereum:pay` URLs as closely as possible, as both users and application programmers are already familiar with that format. Individuals generating these URLs are free to add and remove arbitrary parameters as they see fit.\r\n\r\n## Compatibility and Versioning\r\nFuture upgrades that are partially or fully incompatible with this proposal must use a prefix other than `token_info-` that is separated by a dash (`-`) character from whatever follows it, as specified by ERC #831.\r\n\r\n## Copyright\r\n\r\nCopyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).\r\n"},"comment":{"url":"https://api.github.com/repos/ethereum/EIPs/issues/comments/405552257","html_url":"https://github.com/ethereum/EIPs/pull/961#issuecomment-405552257","issue_url":"https://api.github.com/repos/ethereum/EIPs/issues/961","id":405552257,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTU1MjI1Nw==","user":{"login":"ligi","id":111600,"node_id":"MDQ6VXNlcjExMTYwMA==","avatar_url":"https://avatars2.githubusercontent.com/u/111600?v=4","gravatar_id":"","url":"https://api.github.com/users/ligi","html_url":"https://github.com/ligi","followers_url":"https://api.github.com/users/ligi/followers","following_url":"https://api.github.com/users/ligi/following{/other_user}","gists_url":"https://api.github.com/users/ligi/gists{/gist_id}","starred_url":"https://api.github.com/users/ligi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligi/subscriptions","organizations_url":"https://api.github.com/users/ligi/orgs","repos_url":"https://api.github.com/users/ligi/repos","events_url":"https://api.github.com/users/ligi/events{/privacy}","received_events_url":"https://api.github.com/users/ligi/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T11:39:32Z","updated_at":"2018-07-17T11:39:32Z","author_association":"MEMBER","body":"Added this EIP here: https://github.com/ethereum-magicians/scrolls/wiki/Wallet-Ring - also kindly invite you to join the ring"}}
{"actor":{"display_login":"ligi"}}