When your token is created (either on Memo or Electron Cash SLP), it will be assigned a default icon. In order to change that icon, you will need a GitHub account & the icon files in different sizes. There are a few different GitHub repositories that house token icons for different apps and serve those icons from censorship resistant servers.
- You will first need to create a GitHub account if you don’t already have one.
- Next fork the below repo from your account (On repo page, click the fork button):
https://github.com/kosinusbch/slp-token-icons
git clone https://github.com/yourUSERNAME/slp-token-icons
- Make your changes on your fork by adding the images to the corresponding paths within your repo. Don’t change any other files, only add your own. At this point, you can either open the repo in a file explorer and then drag & drop your files into it or you can copy them via command-line.
- The format is /{size}/{txid}.{format}
{size} can be any number from 1-2399 (or “original”)
{txid} is the transaction id of the token genesis transaction
{format} can be png, jpg, tiff or webp
cd slp-token-icons
cp filetomoveTOKENID.jpg path/{size}/{txid}(tokenID).jpg/png/tiff/webp
Repeat cp for each size of token icon.
- Next commit your changes. The below commands will add all changes, stage them for commit with a message & then push them back into your forked repo.
git add *
git commit -m 'commit message'
git push
- At this point, you have your token icons in your own forked repository, under the correct sizes, with the tokenid as your icon name. Now you will need to open a Pull Request from the original repo in order to add your changes in there. Go back to the original repo and click “New pull request”. From the Compare Changes page, select your repository & changes to merge into the original one.
The pull request will need to be reviewed & approved so it can take a few days or couple weeks, depending on the dev(s) maintaining the repo.
For the Badger wallet & Bitcoin.com explorer (and possibly Bitcoin.com wallet), this is the repository that you will need to go through the same process for:
https://github.com/Bitcoin-com/bch-token-icons
Note: this repo doesn’t seem to be maintained very well at the moment. I have had a pull request waiting for the past few months so I’ll edit this page if/when it gets approved. Those are the only repos I know of that host SLP token icons, if you know of any others drop me a line!
You can get more help on the SLP Devs telegram group: https://t.me/slp_devs_for_hire
The SOUR token displays the icon for the SLP explorer because I created a pull request (and it was accepted) for kosinusbch/slp-token-icons. My pull request is still awaiting approval on the second repo so the icon doesn’t display for the Badger wallet yet.
If anyone would like to try some SOUR, visit the faucet at: http://sour-faucet.ddns.net & if you have your own token, then view this guide to set up your own SLP Faucet for your token!
Join Local.Bitcoin.com
Exchange Bitcoin Cash to Fiat and vice versa, peer to peer, without KYC, using any payment method.