> For the complete documentation index, see [llms.txt](https://ryan-44.gitbook.io/portrait/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryan-44.gitbook.io/portrait/portrait-sdk/user-portraits/write/setportraithash.md).

# setPortraitHash()

```typescript
  /**
   * Set a User Portrait
   *
   * @remarks
   * Wallet required.
   *
   * @param {string} hash - The hash of the User Portrait that the user would like to set.
   * @returns {Promise<ethers.ContractTransaction>} - The transaction object, which contains the transaction hash.
   * @beta
   */
  setPortraitHash(hash: string): Promise<ethers.ContractTransaction> {
    return this.portrait.portraitUserContract.setPersonalIpfsCIDByOwner(hash);
  }
```
