checkNameOwnership
Parameters
Returns
Example
import { ThothIdSDK } from "thoth-id-sdk";
async function checkNameOwnership() {
try {
const sdk = new ThothIdSDK();
await sdk.loadContractIds();
const isOwner = await sdk.checkNameOwnership("example.htr", "WALLET_ADDRESS");
if (isOwner) {
console.log("The address owns the name.");
} else {
console.log("The address does not own the name.");
}
} catch (error) {
console.error("Error checking name ownership:", error);
}
}
checkNameOwnership();Last updated

