5

I've seen plenty of ERC20 token sales and ICOs lately, and a few sites have sprung up to track the value of various ERC20 compliant tokens. Most of these sites show images or logos associated with the tokens alongside the token ticker symbols. But as far as I know, these sites are just getting the images online or from the token creators to display on their sites.

I'm sure that it's possible store a tiny logo inside your token's contract, such that these sites could just grab the logo from the blockchain. It would probably cost a lot of gas depending on the resolution of the image, but it's theoretically possible.

So are any tokens that do this already, or is are there proposed additions to the ERC20 standard that includes the addition of tiny logo image data in the contracts?

  • Here's some information about how to do it with parity. medium.com/@Dave_Appleton/… – 0xcaff Jun 9 '17 at 0:54
  • 1
    0.5 ETH is hella expensive for little more than advertising. I was actually thinking of putting emojis as the token ticker symbol. I assume Mist can handle it – user9402 Jun 9 '17 at 1:00
  • 1
    I have made a terrible discovery. Emojis are considered an invalid UTF-8 sequence in Solidity v0.4.11. – user9402 Jun 9 '17 at 1:21
4

You can't, nor are there any proposals for adding image data into the ERC20 standard.

1

You can add the image data to the contract but nobody yet will have a use for it externally. There has been no discussion to images, and the whole thing seems rather pointless with the ENS allowing you to alias an address, and thus maybe implement some for of favicon.ico.

There are a lot of discussions going on about ERC223 and other EIPs, but this seems like something best requested from ENS. The way it seems implemented now seems fine. Perhaps a favicon.ico project should stand on its own. The current address icon system is really lame.

0

Example of an image in the Smart Contract: https://bitcointalk.org/index.php?topic=2799398.msg32974873#msg32974873 Gas price $0.7

  • Please add more information directly in this answer instead of simply linking to another site. – Nicolas Massart Mar 28 '18 at 12:12
  • /// @param _message The message to be transferred (optional-0xbt) function transfer(address _to, uint256 _value, string _message) returns (bool success) {} github.com/ZerroXBToken/zxbt – Oleg Apr 1 '18 at 1:23
0

Example of an image in the Smart Contract:
/// @param _message The message to be transferred (optional-0xbt)
function transfer(address _to, uint256 _value, string _message) returns (bool success) {} https://github.com/ZerroXBToken/zxbt
https://youtu.be/4dRRFbVCWao

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy