# Logobase — crypto logo library for AI coding agents Logobase serves up-to-date logos for crypto tokens, DeFi protocols, networks, and wallets (1,200+ icons). Use a logo by URL (no install, no API key), or query the JSON API to discover assets. All logos are square transparent PNGs. -------------------------------------------------------------------------------- ## 1. Logo image URLs (primary — drop straight into / CSS) Pattern: https://cdn.defitriangle.xyz/logos/{namespace}/{id}/{size}.png - size is one of: 32 | 64 | 128 | 256 - Logos are immutable and CDN-cached — safe to hotlink directly. By category: Token (ERC-20, SPL, etc.) — {chain}/{contractAddress}, EVM addresses LOWERCASED: https://cdn.defitriangle.xyz/logos/ethereum/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/64.png # USDC Native L1 coin — {chain}/native: https://cdn.defitriangle.xyz/logos/bitcoin/native/64.png # BTC https://cdn.defitriangle.xyz/logos/ethereum/native/64.png # ETH https://cdn.defitriangle.xyz/logos/dogecoin/native/64.png # DOGE DeFi protocol — protocol/{slug}: https://cdn.defitriangle.xyz/logos/protocol/lido/64.png https://cdn.defitriangle.xyz/logos/protocol/aave-v3/64.png Network / chain — network/{slug}: https://cdn.defitriangle.xyz/logos/network/base/64.png https://cdn.defitriangle.xyz/logos/network/arbitrum/64.png Wallet — wallet/{slug}: https://cdn.defitriangle.xyz/logos/wallet/metamask/64.png https://cdn.defitriangle.xyz/logos/wallet/phantom/64.png Token chains currently covered: ethereum, smartchain (BNB Smart Chain), polygon, solana, bitcoin, dogecoin. ### Shape variants (rounded / semi-rounded badges) Any logo can be served as a shaped badge, generated on demand: https://icons.hirahul.xyz/api/icon/{chain}/{address}?shape={rounded|semi-rounded}&size={16..512} rounded = full circle semi-rounded = rounded-corner square (squircle) https://icons.hirahul.xyz/api/icon/bitcoin/native?shape=rounded&size=128 https://icons.hirahul.xyz/api/icon/ethereum/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48?shape=semi-rounded&size=64 These work for every asset (a curated override is used when present, otherwise the badge is auto-generated from the base logo). ### Corner badge (token + network/issuer) Composite a small second logo into the bottom-right corner with `badge={chain}:{address}`: https://icons.hirahul.xyz/api/icon/{chain}/{address}?badge={chain}:{address}&size={16..512} # USDC badged with USDT https://icons.hirahul.xyz/api/icon/ethereum/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48?badge=ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7&size=128 # token with a network badge, on a rounded primary https://icons.hirahul.xyz/api/icon/ethereum/0x.../?shape=rounded&badge=network:base `shape` and `badge` are each optional, but provide at least one. Use `native` as the address for L1 coins (e.g. badge=ethereum:native). -------------------------------------------------------------------------------- ## 2. Discover assets — JSON API Base: https://icons.hirahul.xyz/api/v1 (CORS-open, rate-limited, no key) GET /assets?kind=&chain=&symbol=&verified=&limit=&offset= GET /assets/{chain}/{address} GET /search?q= # matches symbol / name / address / chain GET /recent kind is one of: token | protocol | network | wallet (filter the catalog) Each asset is: { "id": "ethereum:native", "kind": "token", "chain": "ethereum", "address": "native", "symbol": "ETH", "name": "Ethereum", "rank": 2, "verified": true, "logo": { "png256": "...", "png128": "...", "png64": "...", "png32": "...", "svg": null } } Examples: https://icons.hirahul.xyz/api/v1/search?q=usdc https://icons.hirahul.xyz/api/v1/assets?kind=wallet&limit=50 https://icons.hirahul.xyz/api/v1/assets?kind=protocol&limit=50 https://icons.hirahul.xyz/api/v1/assets/ethereum/native -------------------------------------------------------------------------------- ## 3. Recommended flow for an agent 1. Resolve the asset: GET /api/v1/search?q= -> read its `chain` + `address` (and the ready-made `logo` URLs). 2. Render `logo.png64` (or build the CDN URL from the pattern above). Do NOT guess contract addresses — resolve them via the API first. React helper (optional, if the npm package is installed): import { getLogoUrl } from "@hirahul/crypto-logos"; const src = getLogoUrl({ chain: "dogecoin", address: "native", size: 64 }); // or: import { TokenIcon } from "@hirahul/crypto-logos/react"; -------------------------------------------------------------------------------- ## Notes - EVM contract addresses are lowercased in URLs; Solana mints keep their case. - A missing logo returns HTTP 404 — render a placeholder fallback. - Free to use. Logos are the property of their respective projects/brands. - Explore the full library at https://icons.hirahul.xyz