go_ethereum

package
v0.0.110 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Timestamp   int64
	BlockNumber int64
}

type Client

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

func NewClient

func NewClient(logger logging.Logger, rpcURL string, ctx context.Context) (*Client, error)

func (*Client) GetBlockNumberWithTS

func (c *Client) GetBlockNumberWithTS(timestamp int64) (int64, error)

func (*Client) GetFilterLogsByQuery

func (c *Client) GetFilterLogsByQuery(query ethereum.FilterQuery) (logs []types.Log, err error)

func (*Client) GetLatestBlock

func (c *Client) GetLatestBlock() (*Block, error)

func (*Client) GetReceiptFromTransaction

func (c *Client) GetReceiptFromTransaction(txHash common.Hash) (receipt *types.Receipt, err error)

func (*Client) GetSigner

func (c *Client) GetSigner() (*types.EIP155Signer, error)

func (*Client) GetTimestampWithBN

func (c *Client) GetTimestampWithBN(blockNumber int64) (int64, error)

func (*Client) GetTransactionByHash

func (c *Client) GetTransactionByHash(txHash common.Hash) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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