Class: CommonOutput
The base class for common outputs.
Hierarchy
↳
CommonOutput↳↳
BasicOutput
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new CommonOutput(type, amount, unlockConditions)
Parameters
| Name | Type | Description |
|---|---|---|
type | OutputType | The type of output. |
amount | bigint | The amount of the output. |
unlockConditions | UnlockCondition[] | Conditions to unlock the output. |
Overrides
Properties
amount
• Readonly amount: string
Inherited from
type
• Readonly type: OutputType
Inherited from
unlockConditions
• Readonly unlockConditions: UnlockCondition[]
nativeTokens
• Optional Readonly nativeTokens: INativeToken[]
features
• Optional Readonly features: Feature[]
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 |
Returns
Inherited from
getUnlockConditions
▸ getUnlockConditions(): UnlockCondition[]
The unlock conditions for the output.
Returns
getNativeTokens
▸ getNativeTokens(): undefined | INativeToken[]
The native tokens held by the output.
Returns
undefined | INativeToken[]
getFeatures
▸ getFeatures(): undefined | Feature[]
Get the features contained by the output.
Returns
undefined | Feature[]