Skip to main content

marginal_fee

Function marginal_fee 

Source
pub fn marginal_fee<P: Parameters>(
    params: &P,
    target_height: BlockHeight,
) -> Zatoshis
Expand description

Returns the ZIP 317 marginal fee, in zatoshis per logical action, for a transaction expected to be mined at target_height on the network params describes.

The fee is 5000 zatoshis for a target_height before the fee reduction of ZIP 2009 takes effect, and 1000 from then on. The reduction takes effect at height 3590000 on Mainnet, 4465026 on Testnet, and the NU7 activation height on a regtest network (never, if NU7 does not activate there).