JsonRpcResponse

Provides JSON-RPC response factory.

Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final class Builder

Provides JSON-RPC response builder.

Provides JSON-RPC response builder.

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(version: String, id: JsonRpcIdentifier, result: JsonValue): JsonRpcResponse

Creates JSON-RPC response with result.

Creates JSON-RPC response with result.

Value Params
id

message identifier

result

result

version

JSON-RPC version

def apply(version: String, id: JsonRpcIdentifier, error: JsonRpcError): JsonRpcResponse

Creates JSON-RPC response with error.

Creates JSON-RPC response with error.

Value Params
error

error

id

message identifier

version

JSON-RPC version

Gets new response builder.

Gets new response builder.