Class BSV::Transaction::FeeModel ¶
Inherits: Object
Base class for fee models that compute transaction fees.
Fee models determine how many satoshis a transaction should pay in fees based on its size or other properties. Subclasses must implement {#compute_fee}.
@example Implementing a custom fee model
Public Instance Methods¶
compute_fee(_transaction) ¶
Compute the fee for a transaction. - @param transaction [Transaction] the transaction to compute the fee for - @raise [NotImplementedError] if not overridden by a subclass - @return [Integer] the fee in satoshis