buildTxBody method

TransactionBody buildTxBody({
  1. AuxiliaryDataHash? auxHash,
})

Implementation

TransactionBody buildTxBody({AuxiliaryDataHash? auxHash}) {
  if (fee == null) {
    throw const MessageException(
        "cannot build transaction body before calculation fee.");
  }
  final mint = getMint();

  return TransactionBody(
      fee: fee!,
      inputs: utxos.map((e) => e.toInput).toList(),
      outputs: outputs,
      certs: certificates.map((e) => e.certificate).toList(),
      mint: mint,
      auxiliaryDataHash: auxHash);
}