pyrxd.fee_models — Fee estimation

pyrxd.fee_models.DefaultFeeModel

alias of SatoshisPerKilobyte

class pyrxd.fee_models.SatoshisPerKilobyte[source]

Bases: FeeModel

Represents the “satoshis per kilobyte” transaction fee model.

__init__(value)[source]

Constructs an instance of the sat/kb fee model.

Parameters:

value (int) – The number of satoshis per kilobyte to charge as a fee.

compute_fee(tx)[source]

Computes the fee for a given transaction.

Parameters:

tx – The transaction for which a fee is to be computed.

Returns:

The fee in satoshis for the transaction.

Return type:

int