gasprice

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GaspriceCmd = &cobra.Command{
	Use:   "gas-price",
	Short: "Fetch the current gas price",
	Long:  "",
	Run: func(cmd *cobra.Command, args []string) {
		gPrice, err := fetchGasPrice()
		if err != nil {
			log.Crit("Failed to get gas price", "error", err)
		}
		fmt.Printf("%ssuggested gas price: %s%v\n", gastParams.ColorGreen, gastParams.ColorReset, gPrice)
	},
}

GaspriceCmd represents the gasprice command

Functions

func GetCurrentGasPrice

func GetCurrentGasPrice(rpcUrl string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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