Skip to content

Ens.normalize

Normalizes ENS name according to ENSIP-15.

For more info see ENS documentation on name processing.

Imports

Named
import { Ens } from 'ox'

Examples

import { Ens } from 'ox'
Ens.normalize('wevm.eth')
'wevm.eth'

Definition

function normalize(
  name: string,
): string

Source: src/Ens.ts

Parameters

name

  • Type: string

ENS name.

Return Type

Normalized ENS name.

string