Install
@namehash/nameguard
npm install @namehash/nameguard
Import
nameguard
import { nameguard } from "@namehash/nameguard";
Inspect
Inspect Name
const report = await nameguard.inspectName("nick.eth");
Batch Inspect Name
const names = ["vitalik.eth", "notrab.eth"]; const reports = await nameguard.bulkInspectNames(names);
Secure Primary Name Lookup
const result = await nameguard.getSecurePrimaryName("0x...");
Verify `.eth` Names
const report = await nameguard.fakeEthNameCheck("contractAddress", "tokenId");
Inspect Grapheme
const report = await nameguard.inspectGrapheme("𝒶");
Inspect Labelhash
const report = await nameguard.inspectLabelhash("0x...", { parent: "eth", });
Inspect Namehash
const report = await nameguard.inspectNamehash("0x...");