bitcoins.txrules library

Constants

DEFAULT_RELAY_FEE_PER_KB → const int
default fee
1000

Functions

feeForSerializeSize(Amount relayFeePerKb, int txSerializeSize) Amount
feeForSerializeSize calculates the required fee for a transaction of some arbitrary size given a mempool's relay fee policy.
isDustAmount(Amount amount, Amount relayFeePerKb) bool
isDustAmount determines whether a transaction output value and script length would cause the output to be considered dust. Transactions with dust outputs are not standard and are rejected by mempools with default policies.