TransactionBody constructor

TransactionBody({
  1. required List<TransactionInput> inputs,
  2. required List<TransactionOutput> outputs,
  3. required BigInt fee,
  4. BigInt? ttl,
  5. List<Certificate>? certs,
  6. Withdrawals? withdrawals,
  7. Update? update,
  8. AuxiliaryDataHash? auxiliaryDataHash,
  9. BigInt? validityStartInterval,
  10. Mint? mint,
  11. ScriptDataHash? scriptDataHash,
  12. List<TransactionInput>? collateral,
  13. List<Ed25519KeyHash>? requiredSigners,
  14. ADANetwork? network,
  15. TransactionOutput? collateralReturn,
  16. BigInt? totalCollateral,
  17. List<TransactionInput>? referenceInputs,
})

Implementation

TransactionBody(
    {required List<TransactionInput> inputs,
    required List<TransactionOutput> outputs,
    required this.fee,
    this.ttl,
    List<Certificate>? certs,
    this.withdrawals,
    this.update,
    this.auxiliaryDataHash,
    this.validityStartInterval,
    this.mint,
    this.scriptDataHash,
    List<TransactionInput>? collateral,
    List<Ed25519KeyHash>? requiredSigners,
    this.network,
    this.collateralReturn,
    this.totalCollateral,
    List<TransactionInput>? referenceInputs})
    : inputs = List<TransactionInput>.unmodifiable(inputs),
      outputs = List<TransactionOutput>.unmodifiable(outputs),
      certs = AdaTransactionUtils.unmodifiable(certs),
      collateral = AdaTransactionUtils.unmodifiable(collateral),
      requiredSigners = AdaTransactionUtils.unmodifiable(requiredSigners),
      referenceInputs = AdaTransactionUtils.unmodifiable(referenceInputs);