TxBody
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / TxBody
Class: TxBody
Implements
ITxBodyToCborToJson
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?
readonlyoptionalauxDataHash:AuxiliaryDataHash
Implementation of
Defined in
certs?
readonlyoptionalcerts:Certificate[]
Implementation of
Defined in
collateralInputs?
readonlyoptionalcollateralInputs:UTxO[]
Implementation of
Defined in
collateralReturn?
readonlyoptionalcollateralReturn:TxOut
Implementation of
Defined in
currentTreasuryValue?
readonlyoptionalcurrentTreasuryValue:bigint
Implementation of
Defined in
donation?
readonlyoptionaldonation:bigint
Implementation of
Defined in
fee
readonlyfee:bigint
Implementation of
Defined in
hash
readonlyhash:Hash32
getter
Defined in
inputs
readonlyinputs: [UTxO,...UTxO[]]
Implementation of
Defined in
mint?
readonlyoptionalmint:Value
Implementation of
Defined in
network?
readonlyoptionalnetwork:NetworkT
Implementation of
Defined in
outputs
readonlyoutputs:TxOut[]
Implementation of
Defined in
proposalProcedures?
readonlyoptionalproposalProcedures:ProposalProcedure[]
Implementation of
Defined in
protocolUpdate?
readonlyoptionalprotocolUpdate:LegacyPPUpdateProposal
Implementation of
Defined in
refInputs?
readonlyoptionalrefInputs:UTxO[]
Implementation of
Defined in
requiredSigners?
readonlyoptionalrequiredSigners:PubKeyHash[]
Implementation of
Defined in
scriptDataHash?
readonlyoptionalscriptDataHash:ScriptDataHash
Implementation of
Defined in
totCollateral?
readonlyoptionaltotCollateral:bigint
Implementation of
Defined in
ttl?
readonlyoptionalttl:bigint
Implementation of
Defined in
validityIntervalStart?
readonlyoptionalvalidityIntervalStart:bigint
Implementation of
Defined in
votingProcedures?
readonlyoptionalvotingProcedures:VotingProcedures
Implementation of
Defined in
withdrawals?
readonlyoptionalwithdrawals: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)[]