Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
Error is a JSONRPC error returned from the node.
type Message ¶
type Message struct { Version string `json:"jsonrpc"` ID any `json:"id"` Method string `json:"method,omitempty"` Params []any `json:"params,omitempty"` Result json.RawMessage `json:"result,omitempty"` Error *Error `json:"error,omitempty"` }
Message is either a JSONRPC request or response.
Click to show internal directories.
Click to hide internal directories.