copyWith method

TransactionBody copyWith({
  1. List<TransactionInput>? inputs,
  2. List<TransactionOutput>? outputs,
  3. 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 copyWith({
  List<TransactionInput>? inputs,
  List<TransactionOutput>? outputs,
  BigInt? fee,
  BigInt? ttl,
  List<Certificate>? certs,
  Withdrawals? withdrawals,
  Update? update,
  AuxiliaryDataHash? auxiliaryDataHash,
  BigInt? validityStartInterval,
  Mint? mint,
  ScriptDataHash? scriptDataHash,
  List<TransactionInput>? collateral,
  List<Ed25519KeyHash>? requiredSigners,
  ADANetwork? network,
  TransactionOutput? collateralReturn,
  BigInt? totalCollateral,
  List<TransactionInput>? referenceInputs,
}) {
  return TransactionBody(
    inputs: inputs ?? this.inputs,
    outputs: outputs ?? this.outputs,
    fee: fee ?? this.fee,
    ttl: ttl ?? this.ttl,
    certs: certs ?? this.certs,
    withdrawals: withdrawals ?? this.withdrawals,
    update: update ?? this.update,
    auxiliaryDataHash: auxiliaryDataHash ?? this.auxiliaryDataHash,
    validityStartInterval:
        validityStartInterval ?? this.validityStartInterval,
    mint: mint ?? this.mint,
    scriptDataHash: scriptDataHash ?? this.scriptDataHash,
    collateral: collateral ?? this.collateral,
    requiredSigners: requiredSigners ?? this.requiredSigners,
    network: network ?? this.network,
    collateralReturn: collateralReturn ?? this.collateralReturn,
    totalCollateral: totalCollateral ?? this.totalCollateral,
    referenceInputs: referenceInputs ?? this.referenceInputs,
  );
}