fee

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GetFeeUnit(ctx context.Context) (*bsv.FeeUnit, error)
}

Provider is an interface that provides fee units from miners.

type Service

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

Service is a fee service that provides fee units for transactions.

func NewService

func NewService(cfg *config.AppConfig, feeProvider Provider, logger zerolog.Logger) *Service

NewService creates a new fee service.

func (*Service) GetFeeUnit

func (s *Service) GetFeeUnit(ctx context.Context) (bsv.FeeUnit, error)

GetFeeUnit returns the fee unit that should be used for transactions.

Jump to

Keyboard shortcuts

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