getValidUntil()
/**
* Get the valid until time of the Collective Portrait.
*
* @remarks
* The valid until time is the time at which the Collective Portrait will expire.
* If the user does not renew their Collective Portrait before the valid until time + grace period, the Collective Portrait will be put up for auction.
*
* @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the valid until time for.
* @returns {number} - The valid until time of the Collective Portrait.
* @beta
* @async
*/
getValidUntil(identity: CollectivePortraitName | number): number {
const id =
typeof identity !== 'number' ? this.getTokenIdByName(identity) : identity;
return this.portrait.portraitCollectiveContract.getValidUntil(id);
}
Last updated