Skip to main content

Module wire

Module wire 

Source
Expand description

JSON-RPC 2.0 wire types and helpers.

This module defines the base JSON-RPC 2.0 protocol structures.

Structs§

RpcError
JSON-RPC 2.0 error object.
RpcRequest
JSON-RPC 2.0 request.
RpcResponse
JSON-RPC 2.0 response.

Enums§

RpcId
JSON-RPC 2.0 request identifier.

Constants§

INTERNAL_ERROR
INVALID_PARAMS
INVALID_REQUEST
METHOD_NOT_FOUND
PARSE_ERROR

Functions§

err
Create an error JSON-RPC response.
ok
Create a successful JSON-RPC response.
ok_partial
Create a partial (chunked) JSON-RPC response. Used for streaming large result sets.