> For the complete documentation index, see [llms.txt](https://docs.risewallet.io/introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.risewallet.io/introduction/integrations/profile-picture-protocol/set-a-nft-as-a-profile-picture.md).

# Set a NFT as a Profile Picture

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

```javascript
function createSetProfilePicturePayload (tokenId: TokenId): Promise<TransactionPayloadEntryFunction>
```

**Params**

* `tokenId` - The token object that holds token identifications

TokenId is defined by:

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