fees

package
v0.0.0-...-5d200cf Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinearFee

type LinearFee struct {
	TxFeePerByte uint
	TxFeeFixed   uint
}

LinearFee contains parameters for the linear fee equation `TxFeeFixed + len_bytes(tx) * TxFeePerByte`. These are provided in the protocol parameters

func NewLinearFee

func NewLinearFee(feePerByte uint, fixedFee uint) *LinearFee

NewLinearFee returns a pointer to a new LinearFee from the provided params

Jump to

Keyboard shortcuts

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