Returns an object representing a duration in either fixed or subscription format.
The type of duration. Can be either 'fixed' or 'subscription'.
The length of the contract duration in blocks.
(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.
An object representing the duration of a contract.
Generated using TypeDoc