A Cloudflare Worker that returns token/chain icons given a chain ID and contract address or symbol.
| Param | Required | Description |
|---|---|---|
chainId |
yes | EVM chain ID (e.g. 1, 8453) |
address |
no* | Token contract address, or 0 for native token |
symbol |
no* | Token symbol (e.g. USDC) |
png |
no | Set to true to convert SVG icons to PNG |
bust |
no | Set to true to bypass cache and re-fetch |
*At least one of address or symbol is required.
Address only — address=0x...
- web3icons (by address)
- TrustWallet (by address)
Symbol only — symbol=USDC
- Alexandria (by symbol)
- web3icons (by symbol)
Both — address=0x...&symbol=USDC
- web3icons (by address)
- TrustWallet (by address)
- Alexandria (by symbol)
- web3icons (by symbol)
Native token — address=0
- TrustWallet chain logo
- Alexandria chain SVG
GET /?chainId=1&address=0x6B175474E89094C44Da98b954EedeAC495271d0F
GET /?chainId=1&symbol=USDC
GET /?chainId=1&address=0x6B175474E89094C44Da98b954EedeAC495271d0F&symbol=DAI
GET /?chainId=1&address=0&bust=true
GET /?chainId=1&symbol=USDC&png=true