@lit-protocol/domainwallet-sdk
v0.2.1
Published
SDK for querying domain information from the Domain Registry.
Downloads
8
Keywords
Readme
Domain Wallet SDK
SDK for querying domain information from the Domain Registry.
Usage
query by Domain
const dwr = new DWR({
litNetwork: 'habanero'
});
await dwr.connect();
const domainInfo = await dwr.getDomainInfo("foobar.domainwallet.id");
query by pkp tokenId
const tokenId = "<your pkp token id>"
const dwr = new DWR({
litNetwork: 'habanero'
});
await dwr.connect();
const url = await dwr.getUrl(tokenId);
const domainInfo = dwr.getDomainInfo(url);