Documentation ¶
Index ¶
- type EthClient
- func (client EthClient) GetBlockByNumber(height int64) *types.EthBlock
- func (client EthClient) GetNonce(address string) uint64
- func (client EthClient) GetTransaction(hash string) *types.ETHTransaction
- func (client EthClient) GetTransactionReceipt(hash string) *types.ETHTxReceipt
- func (ethClient EthClient) LastBlockNumber() int64
- func (client EthClient) SendRawTransaction(transaction *types2.Transaction) string
- type GethClient
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 (EthClient) GetBlockByNumber ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.