Function: getTokenThumbnailUrl()
Gala Launchpad SDK 9.0.0-rc.5 / index / getTokenThumbnailUrl
Function: getTokenThumbnailUrl()
getTokenThumbnailUrl(
tokenName,baseUrl,extension?):string
Defined in: packages/launchpad-sdk/dist/utils/assetUrls.d.ts:128
Get redirect URL for a token thumbnail
Smaller version of the token image optimized for list views and thumbnails. Typically a smaller file size than the full image.
Backend: Redirects to S3 if available, otherwise returns placeholder.
Parameters
tokenName
string
Token name (lowercase)
baseUrl
string
API base URL
extension?
string
File extension (optional, default: 'jpg')
Returns
string
Full redirect URL to token thumbnail
Throws
Error if token name is invalid or extension format is incorrect
Example
const thumbUrl = getTokenThumbnailUrl('anime', 'https://api.example.com', 'png');
// → "https://api.example.com/v1/tokens/anime/assets/thumbnail.png"
Since
7.3.0