Skip to main content

Class: TimelockUnlockCondition

A Timelock Unlock Condition.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TimelockUnlockCondition(unixTime)

Parameters

NameTypeDescription
unixTimenumberThe Unix timestamp marking the end of the timelock.

Overrides

UnlockCondition.constructor

Properties

type

Readonly type: UnlockConditionType

Inherited from

UnlockCondition.type


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

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 timelock as Unix time.

Returns

number