Helios API/ API Reference/ Classes/
TxBody
inputs, minted assets, and withdrawals need to be sorted in order to form a valid transaction
Hierarchy
-
↳
TxBody
Index
Constructors
constructor
• new TxBody()
Inherited from
Accessors
collateral
• get
collateral(): TxInput
[]
Returns
TxInput
[]
dcerts
• get
dcerts(): DCert
[]
Returns
DCert
[]
fee
• get
fee(): bigint
Returns
bigint
firstValidSlot
• get
firstValidSlot(): null
| bigint
Returns
null
| bigint
inputs
• get
inputs(): TxInput
[]
Returns
TxInput
[]
lastValidSlot
• get
lastValidSlot(): null
| bigint
Returns
null
| bigint
minted
• get
minted(): Assets
Returns
outputs
• get
outputs(): TxOutput
[]
Returns
TxOutput
[]
refInputs
• get
refInputs(): TxInput
[]
Returns
TxInput
[]
signers
• get
signers(): PubKeyHash
[]
Returns
Methods
dump
▸ dump(): any
Returns
any
sumInputAndMintedAssets
▸ sumInputAndMintedAssets(): Assets
Returns
sumInputAndMintedValue
▸ sumInputAndMintedValue(): Value
Throws error if any part of the sum is negative (i.e. more is burned than input)
Returns
sumInputValue
▸ sumInputValue(): Value
Returns
sumOutputAssets
▸ sumOutputAssets(): Assets
Returns
sumOutputValue
▸ sumOutputValue(): Value
Returns
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): TxBody
Parameters
Name | Type |
---|---|
bytes | number [] |