Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBlockReply ¶
type GetBlockReply struct {
Number string `json:"number"`
Hash string `json:"hash"`
ParentHash string `json:"parentHash"`
Nonce string `json:"nonce"`
Sha3Uncles string `json:"sha3Uncles"`
LogsBloom string `json:"logsBloom"`
TransactionsRoot string `json:"transactionsRoot"`
StateRoot string `json:"stateRoot"`
Miner string `json:"miner"`
Difficulty string `json:"difficulty"`
TotalDifficulty string `json:"totalDifficulty"`
Size string `json:"size"`
ExtraData string `json:"extraData"`
GasLimit string `json:"gasLimit"`
GasUsed string `json:"gasUsed"`
Timestamp string `json:"timestamp"`
Transactions []string `json:"transactions"`
Uncles []string `json:"uncles"`
}
type JSONRpcResp ¶
type JSONRpcResp struct {
Id *json.RawMessage `json:"id"`
Result *json.RawMessage `json:"result"`
Error map[string]interface{} `json:"error"`
}
type RPCClient ¶
type RPCClient struct {
sync.RWMutex
Url string
Name string
// contains filtered or unexported fields
}
func NewRPCClient ¶
func (*RPCClient) GetPendingBlock ¶
func (r *RPCClient) GetPendingBlock() (GetBlockReply, error)
Click to show internal directories.
Click to hide internal directories.