0.0.4 • Published 7 months ago
@lit-protocol/domainwallet-sdk v0.0.4
Domain Wallet SDK
SDK for quering domain information from the Domain Registry.
note currently in production, contract addresses will change without notice.
Usage
query by Domain
dwr = new DWR();
await dwr.connect();
let domainInfo = await dwr.getDomainInfo("foobar.domainwallet.id");
query by pkp tokenId
let tokenId = "<your pkp token id>"
const dwr = new DWR();
await dwr.connect();
let url = await dwr.getUrl(tokenId);
let domainInfo = dwr.getDomainInfo(url);