gas

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtherchainGasFeeSuggestion

type EtherchainGasFeeSuggestion struct {
	RapidWei  *big.Int
	RapidTime string

	FastWei  *big.Int
	FastTime string

	StandardWei  *big.Int
	StandardTime string

	SlowWei  *big.Int
	SlowTime string

	EthUsd float64
}

func GetEtherchainGasPrices

func GetEtherchainGasPrices() (EtherchainGasFeeSuggestion, error)

Get gas prices

type EtherscanGasFeeSuggestion

type EtherscanGasFeeSuggestion struct {
	SlowGwei     float64
	StandardGwei float64
	FastGwei     float64
}

func GetEtherscanGasPrices

func GetEtherscanGasPrices() (EtherscanGasFeeSuggestion, error)

Get gas prices

Jump to

Keyboard shortcuts

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