jsonRpcError

fun jsonRpcError(message: String, requestId: Int?): JsonObject(source)

Creates a JSON-RPC error response with the given message.