Nothing else than Blockchain icons with chain ID filename.
This repository is used by AmiChain ChainList SDK @amichain/chainlist
to display icons from any chain with a known icon.
Each icon can be accessed directly in GitHub raw:
https://github.com/Amichain/chain-icons/blob/main/<ext>/<chain-id>.<ext>>?raw=true
However, this method has some limitations and cannot be used in HTML <img>
tags due to CORS policy.
We suggest using a CDN service such as jsdelivr.net
in that case:
https://cdn.jsdelivr.net/gh/Amichain/chain-icons/<ext>/<chain-id>.<ext>
Note that SVG icons are preferred, but not all chains have an SVG icon.
You should use the appropriate file extension for each chain.
You can use AmiChain ChainList SDK to determine the correct icon extension for a given chain.
Please follow these instructions to add a chain logo:
- Prepare your file:
Prefer the SVG format and optimize the file with svgomg.net. - Fork this repository and add your logo to the folder corresponding to your file extension.
- Create a pull request.
- Repeat the operation for AmiChain ChainList SDK if it is a new logo or if you updated it with a different file extension.