getTokenIdByName()

/**
   * Get the token ID of the Collective Portrait for a given name.
   *
   * @remarks
   * The token ID is the unique identifier of the Collective Portrait. It is used to identify the Collective Portrait in the contract, as part of ERC-1155.
   *
   * @param {CollectivePortraitName} name - The name of the Collective Portrait that the user would like to get the token ID for.
   * @returns {number} - The token ID of the Collective Portrait.
   * @beta
   * @async
   */
  getTokenIdByName(name: CollectivePortraitName): number {
    return this.portrait.portraitCollectiveContract.getTokenIdByName(name);
  }

Last updated