Function cuprate_helper::tx::tx_fee
source · pub fn tx_fee(tx: &Transaction) -> u64
Expand description
Calculates the fee of the Transaction
.
§Panics
This will panic if the inputs overflow or the transaction outputs too much, so should only be used on known to be valid txs.