Skip to Content
API referenceOrbit EvmSrcComponentsgetName()

@tuwaio/orbit-monorepo


getName()

getName(address, chains): Promise<string | null>

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

Fetches the primary ENS name for a given Ethereum address from the Ethereum Mainnet. Includes caching for performance.

Parameters

address

`0x${string}`

The Ethereum address to look up.

chains

readonly [Chain, Chain]

The list of chains to use for client creation.

Returns

Promise<string | null>

The ENS name if found, otherwise null.

Last updated on