getAuctionEndTime()

 /**
   * Get the auction end time of the Collective Portrait.
   *
   * @remarks
   * The auction end time is the time at which the Collective Portrait will no longer be up for auction.
   * This means that the price of the Collective Portrait will no longer be the auction price, but the price of the Collective Portrait for 1 year.
   *
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the auction end time for.
   * @returns {number} - The auction end time of the Collective Portrait.
   * @beta
   * @async
   */
  getAuctionEndTime(identity: CollectivePortraitName | number): number {
    const validUntil = this.getValidUntil(identity);
    return (
      validUntil +
      this.getGracePeriod() +
      1375 * this.getAuctionParameters().auctionEpoch
    );
  }

Last updated