Skip to Content
API referenceOrbit EvmSrcComponentsgetName()

@tuwaio/orbit-monorepo


getName()

getName(address): Promise<string | null>

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

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.

Returns

Promise<string | null>

The ENS name if found, otherwise null.

Last updated on