使用说明
通过压缩 JSON 查找 token、exchange、wallet 图标地址。
tokens
通过 tokenlist 查找图标
- 1打开 tokenlist.json.zst 并解压为 JSON。
- 2在 tokens 数组中按 chain、address、symbol 或 assetId 找到资产。
- 3直接使用该记录的 logoURI 作为图标地址。
完整 tokenlist
https://cdn.jsdmirror.com/gh/GMWalletApp/assets@main/extensions/jsonrpc/data/tokenlist.json.zstexchanges / wallets
通过 support 查找图标
- 1打开 support.json.zst 并解压为 JSON。
- 2在 exchanges 或 wallets 数组中按 id、name 或 type 找到记录。
- 3直接使用该记录的 logoURI 作为图标地址。
完整 support
https://cdn.jsdmirror.com/gh/GMWalletApp/assets@main/support/support.json.zstToken JSON 记录示例
{
"chain": "zetachain",
"symbol": "BTC",
"address": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4",
"assetId": "c10007000_t0x13A0c5930C028511Dc02665E7285134B6d11A5f4",
"logoURI": "https://assets-cdn.trustwallet.com/blockchains/zetachain/assets/0x13A0c5930C028511Dc02665E7285134B6d11A5f4/logo.png"
}logoURI
优先使用,已经是完整图标地址。
chain
链目录名,可用于拼仓库路径。
address
合约资产目录名;为空时表示原生链图标。
Support JSON 记录示例
{
"id": "binance",
"name": "Binance",
"type": "cex",
"logoURI": "https://raw.githubusercontent.com/GMWalletApp/assets/main/support/exchanges/binance/logo.svg"
}exchanges
交易平台图标列表,type 常见为 cex 或 dex。
wallets
钱包图标列表,通常包含 id、name、logoURI。
logoURI
优先使用,已经是完整图标地址。
备用
按仓库路径拼接
原生链
address 为空,使用 blockchains/{chain}/info/logo.png
合约资产
address 有值,使用 blockchains/{chain}/assets/{address}/logo.png
地址大小写
合约地址目录需要和 JSON / 仓库目录保持一致。
交易所 / 钱包
使用 support/exchanges/{id}/logo.svg 或 support/wallets/{id}/logo.svg。
原生链示例
https://cdn.jsdmirror.com/gh/GMWalletApp/assets@main/blockchains/ethereum/info/logo.png合约资产示例
https://cdn.jsdmirror.com/gh/GMWalletApp/assets@main/blockchains/zetachain/assets/0x13A0c5930C028511Dc02665E7285134B6d11A5f4/logo.png交易所示例
https://cdn.jsdmirror.com/gh/GMWalletApp/assets@main/support/exchanges/binance/logo.svg钱包示例
https://cdn.jsdmirror.com/gh/GMWalletApp/assets@main/support/wallets/metamask/logo.svg