ethgasstation

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Http http.Client
	Url  string
}

Client for ethGasStation

func NewEthGasStationService

func NewEthGasStationService() *Client

NewEthGasStationService is the constructor that creates an ethGasStationService

func (*Client) SuggestGasPrice

func (e *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice retrieves the gas price estimation from ethGasStation

Jump to

Keyboard shortcuts

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