Skip to Content
API referencePulsar EvmSrcComponentsisEnsName()

@tuwaio/pulsar-core-monorepo


isEnsName()

isEnsName(address): boolean

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

A simple heuristic to check if a string could be an ENS name. It works by checking if the string is NOT a valid Ethereum address.

Parameters

address

string

The string to check.

Returns

boolean

True if the string is not in a valid address format.

Last updated on