Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHpbNodeSnapSigners ¶
func GetLastBlockNumber ¶
Types ¶
type BlockResult ¶
type BlockResult struct { ParentHash common.Hash `json:"parentHash"` Difficulty string `json:"difficulty"` Miner common.Address `json:"miner"` HardwareRandom hexutil.Bytes `json:"hardwareRandom"` }
func GetBlockMinerAndHardwareRandom ¶
func GetBlockMinerAndHardwareRandom(number int64, endpoint string) (*BlockResult, error)
type RPCRequest ¶
type RPCRequest struct { JSONRPC string `json:"jsonrpc"` Method string `json:"method"` Params []interface{} `json:"params"` ID int64 `json:"id"` }
func NewRPCRequest ¶
func NewRPCRequest(method string, params []interface{}) *RPCRequest
Click to show internal directories.
Click to hide internal directories.