calculateFee method
Calculate transaction fee (requires UTXO lookup for inputs)
Implementation
int? calculateFee() {
final totalIn = calculateTotalInput();
if (totalIn == null) return null;
return totalIn - calculateTotalOutput();
}
Calculate transaction fee (requires UTXO lookup for inputs)
int? calculateFee() {
final totalIn = calculateTotalInput();
if (totalIn == null) return null;
return totalIn - calculateTotalOutput();
}