zpywallet.fees.btc package
Submodules
zpywallet.fees.btc.blockcypher module
- class BlockcypherFeeEstimator(request_interval=(3, 1), api_key=None)[source]
Bases:
objectA class representing a Bitcoin fee rate estimator using Blockcypher.
- __init__(request_interval=(3, 1), api_key=None)[source]
Initializes an instance of the BlockcypherFeeEstimator class.
- Parameters:
request_interval (tuple) – A pair of integers indicating the number of requests allowed during a particular amount of seconds. Set to (0, N) for no rate limiting, where N > 0.
api_key (str) – The API key for accessing the Blockcypher API.
- get_fee_rate()[source]
Retrieves the current fee rate for Bitcoin transactions.
- Raises:
NetworkException – If the API request fails or the fee rate cannot be retrieved
zpywallet.fees.btc.blockstream module
- class BlockstreamFeeEstimator(request_interval=(3, 1), transactions=None)[source]
Bases:
EsploraFeeEstimatorA class representing a Bitcoin fee rate estimator using Blockstream.
zpywallet.fees.btc.earndotcom module
- class EarnDotComFeeEstimator(request_interval=(1000, 1))[source]
Bases:
objectA class representing a Bitcoin fee rate estimator using Earn.com.
- __init__(request_interval=(1000, 1))[source]
Initializes an instance of the EarnDotComFeeEstimator class.
- Parameters:
request_interval (tuple) – A pair of integers indicating the number of requests allowed during a particular amount of seconds. Set to (0, N) for no rate limiting, where N > 0.
- get_fee_rate()[source]
Retrieves the current fee rate for Bitcoin transactions.
- Raises:
NetworkException – If the API request fails or the fee rate cannot be retrieved
zpywallet.fees.btc.esplora module
- class EsploraFeeEstimator(request_interval=(3, 1), **kwargs)[source]
Bases:
objectA class representing a Bitcoin fee rate estimator using Esplora.
- __init__(request_interval=(3, 1), **kwargs)[source]
Initializes an instance of the EsploraFeeEstimator class.
- Parameters:
request_interval (tuple) – A pair of integers indicating the number of requests allowed during a particular amount of seconds. Set to (0, N) for no rate limiting, where N > 0.
- get_fee_rate()[source]
Retrieves the current fee rate for Bitcoin transactions.
- Raises:
NetworkException – If the API request fails or the fee rate cannot be retrieved
zpywallet.fees.btc.fullnode module
zpywallet.fees.btc.loadbalancer module
zpywallet.fees.btc.mempoolspace module
- class MempoolSpaceFeeEstimator(request_interval=(3, 1), transactions=None)[source]
Bases:
EsploraFeeEstimatorA class representing a Bitcoin fee rate estimator using Mempool.space.