Class: TreasuryOutput
A Treasury output.
Hierarchy
↳
TreasuryOutput
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new TreasuryOutput(amount)
Parameters
| Name | Type | Description |
|---|---|---|
amount | bigint | The amount of the output. |
Overrides
Properties
amount
• Readonly amount: string
Inherited from
type
• Readonly type: OutputType
Inherited from
Methods
getType
▸ getType(): OutputType
Get the type of output.
Returns
Inherited from
getAmount
▸ getAmount(): bigint
Get the amount of the output.
Returns
bigint
Inherited from
parse
▸ Static parse(data): Output
Parse an output from a plain JS JSON object.
Parameters
| Name | Type |
|---|---|
data | any |