Skip to main content

tx_fee

Function 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.