Documentation ¶
Overview ¶
Package rpc provides a parser for the RPC API requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBatch ¶
IsBatch determines if a request is batch. This method's implementation is borrowed from rpc/json.go in ethereum-go where it is unexported.
func IsNullResponse ¶ added in v0.13.0
IsNullResponse checks if the result field in the JSON-RPC response is null
Types ¶
type Request ¶
type Request struct { ID int `json:"id"` Method string `json:"method"` JSONRPC string `json:"jsonrpc,omitempty"` Params []json.RawMessage `json:"params"` }
Request is a raw rpc request format.
Click to show internal directories.
Click to hide internal directories.