> 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/getpricesforlength.md).

# getPricesForLength()

```typescript
/**
   * Get the prices for three character names, four character names, and five character names or more.
   *
   * @remarks
   * Although return type is any, the return value is an object with three properties: threeCharprice, fourCharprice, and FiveCharOrMorePrice.
   * Subject to change.
   *
   * @returns {any} - The prices for three character names, four character names, and five character names or more.
   * @beta
   * @async
   */
  getPricesForLength(): any {
    const prices =
      this.portrait.portraitCollectiveContract.getPricesForLength(length);

    const json = {
      threeCharprice: prices[0],
      fourCharprice: prices[1],
      FiveCharOrMorePrice: prices[2],
    };

    return json;
  }
```
