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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.