IsSubnameAvailable

IsSubnameAvailable function

IsSubnameAvailable function is used to check for the availabilty of a subname for listed name, abstracting the logic of l2 and l1 subnames

Usage

index.ts
const listing = await NamespaceClient.getListedName("example.eth")

const subnameLabel = "hello";
const isSubnameAvailable = await NamespaceClient.isSubnameAvailable(listing,      subnameLabel)

Return Type

isSubnameAvailable: boolean - specifies whether the given subname is available or not

Last updated