Skip to Content
API referenceOrbit EvmSrcComponentsgetAvatar()

@tuwaio/satellite-connect-monorepo


getAvatar()

getAvatar(name): Promise<null | string>

Defined in: packages/orbit-evm/src/utils/ensUtils.ts:40 

Fetches the avatar URL for a given ENS name from the Ethereum Mainnet.

Parameters

name

string

The ENS name (e.g., ‘vitalik.eth’).

Returns

Promise<null | string>

The URL of the avatar image if found, otherwise null.

Last updated on