getAvatar()
getAvatar(
name,chains):Promise<string|null>
Defined in: packages/orbit-evm/src/utils/ensUtils.ts:64
Fetches the avatar URL for a given ENS name from the Ethereum Mainnet. Includes caching for performance.
Parameters
name
string
The ENS name (e.g., ‘vitalik.eth’).
chains
readonly [Chain, Chain]
The list of chains to use for client creation.
Returns
Promise<string | null>
The URL of the avatar image if found, otherwise null.
Last updated on