Set a NFT as a Profile Picture

Use the functionality below to allow users to change their PFP from your own front-end.

function createSetProfilePicturePayload (client: JsonRpcProvider, address: string, nftId: string, nftStandard?: string, programId?: string): Promise<Base64DataBuffer>

Params

  • client - Sui JSON RPC provider object

  • address - The address of the wallet

  • nftId - The NFT token identifier

  • nftStandard - NFT standard to use (optional)

  • programId - PFP program id (optional)

Last updated