ethclient

package module
v0.0.0-...-29a35b7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 10 Imported by: 0

README

ethclient

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthClient

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

func NewEthClient

func NewEthClient(gethUrl string, logger xlog.XLog) *EthClient

func (EthClient) GetBlockByNumber

func (client EthClient) GetBlockByNumber(height int64) *types.EthBlock

func (EthClient) GetNonce

func (client EthClient) GetNonce(address string) uint64

func (EthClient) GetTransaction

func (client EthClient) GetTransaction(hash string) *types.ETHTransaction

func (EthClient) GetTransactionReceipt

func (client EthClient) GetTransactionReceipt(hash string) *types.ETHTxReceipt

func (EthClient) LastBlockNumber

func (ethClient EthClient) LastBlockNumber() int64

func (EthClient) SendRawTransaction

func (client EthClient) SendRawTransaction(transaction *types2.Transaction) string

type GethClient

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

func (GethClient) SendRequest

func (geth GethClient) SendRequest(param types.EthRPCParam) (*types.EthRPCResp, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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