JavaScript SDK API Reference / Utilities / getReverseKeySync
Function: getReverseKeySync()
getReverseKeySync(
domain,isSub?):PublicKey
Defined in: utils/getReverseKeySync.ts:21
Derives the reverse lookup account for a domain name.
The caller must trim the TLD suffix before calling this function.
Parameters
domain
string
Domain name with its TLD suffix trimmed
isSub?
boolean
Set to true when deriving a subdomain reverse account
Returns
PublicKey
Reverse lookup account public key.
Example
const key = getReverseKeySync("example");