API ReferenceLOC lifecycleFunction
getMaxLOCDate()
function getMaxLOCDate(ctx): Promise<Date>;Gets the maximum LOC date that is valid from right now.
The result is the current time plus the contract max duration, rounded down to the nearest hour. It may be less than the smart contract’s maximum, but it will always be in the future.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
Returns
Promise<Date>
The maximum LOC date that this SDK treats as valid if a LOC were created with this date right now.