Skip to main content

JavaScript SDK API Reference / Utilities / getArtistPubkey

Function: getArtistPubkey()

getArtistPubkey(bg): PublicKey

Defined in: custom-bg.ts:58

Returns the public key associated with a custom background.

Parameters​

bg​

CustomBg

The custom background identifier

Returns​

PublicKey

The artist or payout public key for the background

Example​

const artist = getArtistPubkey(CustomBg.DegenPoet1);