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 (tokenId: TokenId): Promise<TransactionPayloadEntryFunction>

Params

  • tokenId - The token object that holds token identifications

TokenId is defined by:

{
  creator: string,
  collection: string,
  name: string,
}

Last updated