JavaScript SDK API Reference / Utilities / getCustomBgKeys
Function: getCustomBgKeys()
getCustomBgKeys(
domain,customBg):object
Defined in: custom-bg.ts:33
Derives the name account keys for a custom background.
Parameters
domain
string
Domain name with its TLD suffix trimmed
customBg
Custom background identifier
Returns
object
Custom background domain key and background entry key.
bgKey
bgKey:
PublicKey
domainKey
domainKey:
PublicKey
Example
const keys = getCustomBgKeys("example", CustomBg.DegenPoet1);