chain

package
v0.0.0-...-20d8591 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFeeEstimator

type DefaultFeeEstimator struct {
	// contains filtered or unexported fields
}

func NewDefaultFeeEstimator

func NewDefaultFeeEstimator(targetConf uint32) *DefaultFeeEstimator

func (*DefaultFeeEstimator) EstimateFeeRate

func (e *DefaultFeeEstimator) EstimateFeeRate(
	context.Context,
	FeeStrategy,
) (*FeeEstimation, error)

type FeeEstimation

type FeeEstimation struct {
	SatPerVByte *float64
	TargetConf  *uint32
}

func (*FeeEstimation) String

func (f *FeeEstimation) String() string

type FeeEstimator

type FeeEstimator interface {
	EstimateFeeRate(context.Context, FeeStrategy) (*FeeEstimation, error)
}

type FeeStrategy

type FeeStrategy int
const (
	FeeStrategyFastest  FeeStrategy = 0
	FeeStrategyHalfHour FeeStrategy = 1
	FeeStrategyHour     FeeStrategy = 2
	FeeStrategyEconomy  FeeStrategy = 3
	FeeStrategyMinimum  FeeStrategy = 4
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL