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