getURI()

/**
   * Returns the URI of the Collective Portrait.
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get a URI for.
   * @returns {string} - The URI of the Collective Portrait.
   * @beta
   * @async
   */
  getURI(identity: CollectivePortraitName | number): string {
    return typeof identity === 'number'
      ? this.portrait.portraitCollectiveContract.tokenURI(identity)
      : this.portrait.portraitCollectiveContract.tokenURI(
          this.getTokenIdByName(identity),
        );
  }

Last updated