getAuctionStartTime()
/**
* Get the auction start time of the Collective Portrait.
*
* @remarks
* The auction start time is the time at which the Collective Portrait will be put up for auction.
* The auction start time is equal to the valid until time + grace period.
* It is recommended to use this in conjunction with the timestamp from the block. You can use the Ethers library to get the timestamp from the block.
*
* @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the auction start time for.
* @returns {number} - The auction start time of the Collective Portrait.
* @beta
* @async
*/
getAuctionStartTime(identity: CollectivePortraitName | number): number {
const validUntil = this.getValidUntil(identity);
return validUntil + this.getGracePeriod();
}
Last updated