1

Install

Begin by installing @namehash/nameguard:
npm install @namehash/nameguard
2

Import

Next import nameguard using the required network:
import { nameguard } from "@namehash/nameguard";
3

Inspect

You’re now ready to inspect, lookup and verify:

Inspect Name

const report = await nameguard.inspectName("nick.eth");
const names = ["vitalik.eth", "notrab.eth"];

const reports = await nameguard.bulkInspectNames(names);
const result = await nameguard.getSecurePrimaryName("0x...");
const report = await nameguard.fakeEthNameCheck("contractAddress", "tokenId");
const report = await nameguard.inspectGrapheme("𝒶");
const report = await nameguard.inspectLabelhash("0x...", {
  parent: "eth",
});
const report = await nameguard.inspectNamehash("0x...");