Class: ExpirationUnlockCondition
An Expiration Unlock Condition.
Hierarchy
↳
ExpirationUnlockCondition
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ExpirationUnlockCondition(returnAddress, unixTime)
Parameters
| Name | Type | Description |
|---|---|---|
returnAddress | Address | The address that can unlock the expired output. |
unixTime | number | The Unix timestamp marking the end of the claim period. |
Overrides
Properties
type
• Readonly type: UnlockConditionType
Inherited from
returnAddress
• Readonly returnAddress: Address
The return address if the output was not claimed in time.
unixTime
• Readonly unixTime: number
Before this timestamp, the condition is allowed to unlock the output, after that only the address defined in return address.
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 expiration period as Unix time.
Returns
number
getReturnAddress
▸ getReturnAddress(): Address
Get the return address.