Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2019 Changes in this version + type GetBlockReply struct + Difficulty string + GasLimit string + GasUsed string + Hash string + Miner string + Nonce string + Number string + SealFields []string + Transactions []Tx + Uncles []string + type GetBlockReplyPart struct + Difficulty string + Number string + type JSONRpcResp struct + Error map[string]interface{} + Id *json.RawMessage + Result *json.RawMessage + type RPCClient struct + Name string + Url string + func NewRPCClient(name, url, timeout string) *RPCClient + func (r *RPCClient) Check() bool + func (r *RPCClient) GetBalance(address string) (*big.Int, error) + func (r *RPCClient) GetBlockByHash(hash string) (*GetBlockReply, error) + func (r *RPCClient) GetBlockByHeight(height int64) (*GetBlockReply, error) + func (r *RPCClient) GetGasPrice() (int64, error) + func (r *RPCClient) GetPeerCount() (int64, error) + func (r *RPCClient) GetPendingBlock() (*GetBlockReplyPart, error) + func (r *RPCClient) GetTxReceipt(hash string) (*TxReceipt, error) + func (r *RPCClient) GetUncleByBlockNumberAndIndex(height int64, index int) (*GetBlockReply, error) + func (r *RPCClient) GetWork() ([]string, error) + func (r *RPCClient) SendTransaction(from, to, gas, gasPrice, value string, autoGas bool) (string, error) + func (r *RPCClient) Sick() bool + func (r *RPCClient) Sign(from string, s string) (string, error) + func (r *RPCClient) SubmitBlock(params []string) (bool, error) + type Tx struct + Gas string + GasPrice string + Hash string + type TxReceipt struct + BlockHash string + GasUsed string + Status string + TxHash string + func (r *TxReceipt) Confirmed() bool + func (r *TxReceipt) Successful() bool