# 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,
}
```
