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 objectaddress- The address of the walletnftId- The NFT token identifiernftStandard- NFT standard to use (optional)programId- PFP program id (optional)
Last updated