> 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/collective-portraits/read/getblockheightepoch.md).

# getBlockHeightEpoch()

```typescript
  /**
   * Get the block height epoch used by the Collective Portrait Registry contract in setPortraitHashAsDelegate.
   *
   * @remarks
   * The block height epoch is the block height that is used to verify the block height at which the user's Portrait will be set.
   *
   * @returns {number} - The block height epoch used by the Collective Portrait Registry contract in setPortraitHashAsDelegate.
   * @beta
   * @async
   */
  getBlockHeightEpoch(): number {
    return this.portrait.portraitCollectiveContract.getBlockHeightEpoch();
  }
```
