Skip to main content

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​

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);