copyWith method
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,
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,
);
}