Skip to main content

Class: ExpirationUnlockCondition

An Expiration Unlock Condition.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ExpirationUnlockCondition(returnAddress, unixTime)

Parameters

NameTypeDescription
returnAddressAddressThe address that can unlock the expired output.
unixTimenumberThe Unix timestamp marking the end of the claim period.

Overrides

UnlockCondition.constructor

Properties

type

Readonly type: UnlockConditionType

Inherited from

UnlockCondition.type


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

UnlockConditionType

Inherited from

UnlockCondition.getType


parse

Static parse(data): UnlockCondition

Parse an unlock condition from a plain JS JSON object.

Parameters

NameType
dataany

Returns

UnlockCondition

Inherited from

UnlockCondition.parse


getUnixTime

getUnixTime(): number

Get the end of the expiration period as Unix time.

Returns

number


getReturnAddress

getReturnAddress(): Address

Get the return address.

Returns

Address