Asset mappings for CoinCap, CoinGecko, CryptoCompare and CryptoCurrency Icons. The assets.json is available through MyCrypto's API here.
The assets.json file found in assets/ consists of a key -> value object, where the key is the UUID of an asset, and the value is an object with the following fields:
-
coinCapId(string)The
idfield used in the CoinCap API. -
coinGeckoId(string)The
idfield used in the CoinGecko API. -
cryptoCompareId(string)The
Symbolfield used in the CryptoCompare API. -
cryptoCurrencyIconName(string)The name of the icon in the CryptoCurrency Icon library.
-
dexAgId(string)The
idused in dexAg's API.
Any of these fields can be undefined, in which case no matching asset was found.
The UUID is generated based on RFC-4122 name-based UUIDs (v5). For tokens, a combination of the chain ID and token contract is used (${chainId}-${contractAddress}). For other assets, only the chain ID is used.
Currently, the following assets are supported:
- Ethereum
- Ethereum Classic
- ERC-20 tokens on the Ethereum network
To update the assets.json file, simply run:
$ yarn build
And commit the new file to GitHub. The new file is automatically deployed.
You can use the token-uuid script to get the UUID of a token:
$ yarn token-uuid <contractAddress> <chainId>