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 HexToBigInt ¶
HexToBigInt parse hex string value to big.Int
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
Click to show internal directories.
Click to hide internal directories.