ethclient

package
v0.0.0-...-3c150e5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RateLimitErr = errors.New("Rate limiting threshold exceeded, please wait before running more queries")

Functions

func BigToHex

func BigToHex(bigInt big.Int) string

BigToHex covert big.Int to hexadecimal representation

func HexToBigInt

func HexToBigInt(value string) (big.Int, error)

HexToBigInt parse hex string value to big.Int

func HexToUInt

func HexToUInt(value string) (uint64, error)

HexToUInt parse hex string value to uint64

func UIntToHex

func UIntToHex(i uint64) string

UIntToHex convert uint64 to hexadecimal representation

Types

type EthereumHttpClient

type EthereumHttpClient struct {
	// contains filtered or unexported fields
}

func New

func New(client interfaces.HttpClient, logger interfaces.Logger, refreshInterval time.Duration) *EthereumHttpClient

func (*EthereumHttpClient) Done

func (c *EthereumHttpClient) Done()

func (*EthereumHttpClient) GetBlockByNumber

func (c *EthereumHttpClient) GetBlockByNumber(nr uint64) ([]byte, error)

func (*EthereumHttpClient) GetLatestBlock

func (c *EthereumHttpClient) GetLatestBlock() ([]byte, error)

func (*EthereumHttpClient) LatestBlockNumber

func (c *EthereumHttpClient) LatestBlockNumber() uint64

type Logger

type Logger = echo.Logger

Jump to

Keyboard shortcuts

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