The type of duration. Can be either 'fixed' or 'subscription'.
The length of the contract duration in blocks.
Optional
maxDuration: number(Optional) The maximum length of the contract subscription duration in blocks. Only applicable for subscriptions.
(Optional) A boolean indicating if the duration can be changed. Only applicable for subscriptions.
Generated using TypeDoc
Name
formatDuration
Summary
Returns an object representing a duration in either fixed or subscription format.
Returns
An object representing the duration of a contract.