Files
lspd/chain/fee_estimator.go
2023-02-03 09:24:47 +01:00

22 lines
406 B
Go

package chain
import "context"
type FeeStrategy int
const (
FeeStrategyFastest FeeStrategy = 0
FeeStrategyHalfHour FeeStrategy = 1
FeeStrategyHour FeeStrategy = 2
FeeStrategyEconomy FeeStrategy = 3
FeeStrategyMinimum FeeStrategy = 4
)
type FeeEstimation struct {
SatPerVByte float64
}
type FeeEstimator interface {
EstimateFeeRate(context.Context, FeeStrategy) (*FeeEstimation, error)
}