API ReferenceTokens and balancesFunction
resolveCanonicalTokenAddress()
function resolveCanonicalTokenAddress(address, tokenAliases?): `0x${string}`;Resolves a token address through the provided alias map (the configured profile’s tokenAliases) to
its canonical mainnet address. Returns the (checksummed) input address unchanged when no alias
applies, or when no map is provided.
This is the single alias-resolution primitive: buildTokenLogoUrl uses it, and apps that key their
own lookups by canonical address (e.g. logo override tables) should use it too rather than
re-deriving the alias map with a different normalization convention.
Parameters
| Parameter | Type |
|---|---|
address | `0x${string}` |
tokenAliases? | Readonly<Record<`0x${string}`, `0x${string}`>> |
Returns
`0x${string}`