getShareholders()

/**
   * Get all shareholders of the Collective Portrait.
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the shareholders for.
   * @returns {string[]} - An array of addresses of the shareholders of the Collective Portrait.
   * @beta
   * @async
   */
  getShareholders(identity: CollectivePortraitName | number): string[] {
    const id =
      typeof identity === 'number' ? identity : this.getTokenIdByName(identity);

    return this.portrait.portraitCollectiveContract.getShareholdersByTokenId(
      id,
    );
  }

Last updated