fee

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: LGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SignatureAdditionalSize = 67

	StoreToIpfsFeeCoef = float32(0.2)
)

Variables

View Source
var (
	MinFeePerGas = big.NewInt(10)
)

Functions

func CalculateCost

func CalculateCost(networkSize int, feePerGas *big.Int, tx *types.Transaction) *big.Int

func CalculateFee

func CalculateFee(networkSize int, feePerGas *big.Int, tx *types.Transaction) *big.Int

func CalculateGas added in v0.22.0

func CalculateGas(tx *types.Transaction) int

func CalculateMaxCost added in v0.22.0

func CalculateMaxCost(tx *types.Transaction) *big.Int

func GetFeePerGasForNetwork added in v0.22.0

func GetFeePerGasForNetwork(networkSize int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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