TxBody
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / TxBody
Class: TxBody
Implements
ITxBody
ToCbor
ToJson
Constructors
new TxBody()
new TxBody(
body
):TxBody
Parameters
• body: ITxBody
object describing the transaction
Returns
Throws
only if the the body
parameter does not respect the ITxBody
interface
DOES NOT THROW if the transaction is unbalanced; that needs to be checked using TxBody.isValueConserved
static method
Defined in
Properties
auxDataHash?
readonly
optional
auxDataHash:AuxiliaryDataHash
Implementation of
Defined in
certs?
readonly
optional
certs:Certificate
[]
Implementation of
Defined in
collateralInputs?
readonly
optional
collateralInputs:UTxO
[]
Implementation of
Defined in
collateralReturn?
readonly
optional
collateralReturn:TxOut
Implementation of
Defined in
currentTreasuryValue?
readonly
optional
currentTreasuryValue:bigint
Implementation of
Defined in
donation?
readonly
optional
donation:bigint
Implementation of
Defined in
fee
readonly
fee:bigint
Implementation of
Defined in
hash
readonly
hash:Hash32
getter
Defined in
inputs
readonly
inputs: [UTxO
,...UTxO[]
]
Implementation of
Defined in
mint?
readonly
optional
mint:Value
Implementation of
Defined in
network?
readonly
optional
network:NetworkT
Implementation of
Defined in
outputs
readonly
outputs:TxOut
[]
Implementation of
Defined in
proposalProcedures?
readonly
optional
proposalProcedures:ProposalProcedure
[]
Implementation of
Defined in
protocolUpdate?
readonly
optional
protocolUpdate:LegacyPPUpdateProposal
Implementation of
Defined in
refInputs?
readonly
optional
refInputs:UTxO
[]
Implementation of
Defined in
requiredSigners?
readonly
optional
requiredSigners:PubKeyHash
[]
Implementation of
Defined in
scriptDataHash?
readonly
optional
scriptDataHash:ScriptDataHash
Implementation of
Defined in
totCollateral?
readonly
optional
totCollateral:bigint
Implementation of
Defined in
ttl?
readonly
optional
ttl:bigint
Implementation of
Defined in
validityIntervalStart?
readonly
optional
validityIntervalStart:bigint
Implementation of
Defined in
votingProcedures?
readonly
optional
votingProcedures:VotingProcedures
Implementation of
Defined in
withdrawals?
readonly
optional
withdrawals:TxWithdrawals
Implementation of
Defined in
Methods
toCbor()
toCbor():
CborString
Returns
CborString
Implementation of
ToCbor.toCbor
Defined in
toCborObj()
toCborObj():
CborObj
Returns
CborObj
Implementation of
ToCbor.toCborObj
Defined in
toJson()
toJson():
object
Returns
object
auxDataHash
auxDataHash:
undefined
|string
certs
certs:
undefined
| (object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
|object
)[]