Skip to main content

Class: TreasuryOutput

A Treasury output.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TreasuryOutput(amount)

Parameters

NameTypeDescription
amountbigintThe amount of the output.

Overrides

Output.constructor

Properties

amount

Readonly amount: string

Inherited from

Output.amount


type

Readonly type: OutputType

Inherited from

Output.type

Methods

getType

getType(): OutputType

Get the type of output.

Returns

OutputType

Inherited from

Output.getType


getAmount

getAmount(): bigint

Get the amount of the output.

Returns

bigint

Inherited from

Output.getAmount


parse

Static parse(data): Output

Parse an output from a plain JS JSON object.

Parameters

NameType
dataany

Returns

Output

Inherited from

Output.parse