Versions in this module Expand all Collapse all v0 v0.1.9 Jan 17, 2023 Changes in this version + func DisableLog() + func UseLogger(logger btclog.Logger) + type BitcoindEstimator struct + func NewBitcoindEstimator(rpcConfig rpcclient.ConnConfig, feeMode string, fallBackFeeRate SatPerKWeight) (*BitcoindEstimator, error) + func (b *BitcoindEstimator) EstimateFeePerKW(numBlocks uint32) (SatPerKWeight, error) + func (b *BitcoindEstimator) RelayFeePerKW() SatPerKWeight + func (b *BitcoindEstimator) Start() error + func (b *BitcoindEstimator) Stop() error + type BtcdEstimator struct + func NewBtcdEstimator(rpcConfig rpcclient.ConnConfig, fallBackFeeRate SatPerKWeight) (*BtcdEstimator, error) + func (b *BtcdEstimator) EstimateFeePerKW(numBlocks uint32) (SatPerKWeight, error) + func (b *BtcdEstimator) RelayFeePerKW() SatPerKWeight + func (b *BtcdEstimator) Start() error + func (b *BtcdEstimator) Stop() error + type Estimator interface + EstimateFeePerKW func(numBlocks uint32) (SatPerKWeight, error) + RelayFeePerKW func() SatPerKWeight + Start func() error + Stop func() error + type SatPerKVByte btcutil.Amount + func (s SatPerKVByte) FeeForVSize(vbytes int64) btcutil.Amount + func (s SatPerKVByte) FeePerKWeight() SatPerKWeight + func (s SatPerKVByte) String() string + type SatPerKWeight btcutil.Amount + const AbsoluteFeePerKwFloor + const FeePerKwFloor + func (s SatPerKWeight) FeeForWeight(wu int64) btcutil.Amount + func (s SatPerKWeight) FeePerKVByte() SatPerKVByte + func (s SatPerKWeight) String() string + type SparseConfFeeSource struct + URL string + func (s SparseConfFeeSource) GenQueryURL() string + func (s SparseConfFeeSource) ParseResponse(r io.Reader) (map[uint32]uint32, error) + type StaticEstimator struct + func NewStaticEstimator(feePerKW, relayFee SatPerKWeight) *StaticEstimator + func (e StaticEstimator) EstimateFeePerKW(numBlocks uint32) (SatPerKWeight, error) + func (e StaticEstimator) RelayFeePerKW() SatPerKWeight + func (e StaticEstimator) Start() error + func (e StaticEstimator) Stop() error + type WebAPIEstimator struct + func NewWebAPIEstimator(api WebAPIFeeSource, noCache bool) *WebAPIEstimator + func (w *WebAPIEstimator) EstimateFeePerKW(numBlocks uint32) (SatPerKWeight, error) + func (w *WebAPIEstimator) RelayFeePerKW() SatPerKWeight + func (w *WebAPIEstimator) Start() error + func (w *WebAPIEstimator) Stop() error + type WebAPIFeeSource interface + GenQueryURL func() string + ParseResponse func(r io.Reader) (map[uint32]uint32, error)