Skip to main content

Class: BasicOutput

A Basic output.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BasicOutput(amount, unlockConditions)

Parameters

NameTypeDescription
amountbigintThe amount of the output.
unlockConditionsUnlockCondition[]The unlock conditions for the output.

Overrides

CommonOutput.constructor

Properties

amount

Readonly amount: string

Inherited from

CommonOutput.amount


type

Readonly type: OutputType

Inherited from

CommonOutput.type


unlockConditions

Readonly unlockConditions: UnlockCondition[]

Inherited from

CommonOutput.unlockConditions


nativeTokens

Optional Readonly nativeTokens: INativeToken[]

Inherited from

CommonOutput.nativeTokens


features

Optional Readonly features: Feature[]

Inherited from

CommonOutput.features

Methods

getType

getType(): OutputType

Get the type of output.

Returns

OutputType

Inherited from

CommonOutput.getType


getAmount

getAmount(): bigint

Get the amount of the output.

Returns

bigint

Inherited from

CommonOutput.getAmount


parse

Static parse(data): Output

Parse an output from a plain JS JSON object.

Parameters

NameType
dataany

Returns

Output

Inherited from

CommonOutput.parse


getUnlockConditions

getUnlockConditions(): UnlockCondition[]

The unlock conditions for the output.

Returns

UnlockCondition[]

Inherited from

CommonOutput.getUnlockConditions


getNativeTokens

getNativeTokens(): undefined | INativeToken[]

The native tokens held by the output.

Returns

undefined | INativeToken[]

Inherited from

CommonOutput.getNativeTokens


getFeatures

getFeatures(): undefined | Feature[]

Get the features contained by the output.

Returns

undefined | Feature[]

Inherited from

CommonOutput.getFeatures