txSanityCheck

fun txSanityCheck(tx: iTransaction, returnUnusedAddresses: List<PayAddress>? = null)

Checks the transaction's final fee. Throws an exception and aborts the transaction if the fee is too big.