Get all domains of wallet
import { getAllDomains } from "@bonfida/spl-name-service";
const domains = await getAllDomains(connection, user);import { getDomainsForAddress } from "@solana-name-service/sns-sdk-kit";
const domainsForAddress = await getDomainsForAddress({ rpc, address, });import { getDomainKeysWithReverses } from "@bonfida/spl-name-service";
const domainsWithReverses = await getDomainKeysWithReverses(connection, user);const filters = [
{
memcmp: {
offset: 32,
bytes: user.toBase58(),
},
},
{
memcmp: {
offset: 0,
bytes: ROOT_DOMAIN_ACCOUNT.toBase58(),
},
},
];Last updated