egs

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Retries is the amount of times to reattempt fetching price data before giving up
	Retries = 5
	// Timeout is the duration in seconds for http timeouts
	Timeout = 10
	Fast    = "fast"
	Fastest = "fastest"
	Average = "average"
)

Variables

This section is empty.

Functions

func FetchGasPrice

func FetchGasPrice(apiKey, speed string) (*big.Int, error)

FetchGasPrice will query EGS for the current gas prices and return the price for the specified speed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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