Clear Profile Picture

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

function createUnsetProfilePicturePayload (client: JsonRpcProvider, address: string, pfpId: string, programId?: string): Promise<Base64DataBuffer>

Params

  • client - Sui JSON RPC provider object

  • address - The address of the wallet

  • pfpId - The PFP object identifier

  • programId - PFP program id (optional)

Last updated