Skip to Content
API referencePulsar EvmSrcComponentsgetAddress()

@tuwaio/pulsar-core-monorepo


getAddress()

getAddress(name): Promise<undefined | `0x${string}`>

Defined in: packages/pulsar-evm/src/utils/ensUtils.ts:59 

Fetches the Ethereum address associated with a given ENS name. Performs the lookup on Ethereum Mainnet.

Parameters

name

string

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

Returns

Promise<undefined | `0x${string}`>

The associated Ethereum address (lowercase) or undefined if not found.

Last updated on