Class: TimelockUnlockCondition
A Timelock Unlock Condition.
Hierarchy
↳
TimelockUnlockCondition
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new TimelockUnlockCondition(unixTime)
Parameters
| Name | Type | Description |
|---|---|---|
unixTime | number | The Unix timestamp marking the end of the timelock. |
Overrides
Properties
type
• Readonly type: UnlockConditionType
Inherited from
unixTime
• Readonly unixTime: number
The Unix time (seconds since Unix epoch) starting from which the output can be consumed.
Methods
getType
▸ getType(): UnlockConditionType
Get the type of unlock condition.
Returns
Inherited from
parse
▸ Static parse(data): UnlockCondition
Parse an unlock condition from a plain JS JSON object.
Parameters
| Name | Type |
|---|---|
data | any |
Returns
Inherited from
getUnixTime
▸ getUnixTime(): number
Get the end of the timelock as Unix time.
Returns
number