- Source:
Methods
-
<static> isValidError(error [, version])
-
Determines if the passed error is a valid JSON-RPC error response
Parameters:
Name Type Argument Default Description error
Object The error version
Number <optional>
2 JSON-RPC version 1 or 2 - Source:
Returns:
- Type
- Boolean
-
<static> isValidResponse(response [, version])
-
Determines if the passed object is a valid JSON-RPC response
Parameters:
Name Type Argument Default Description response
Object The response version
Number <optional>
2 JSON-RPC version 1 or 2 - Source:
Returns:
- Type
- Boolean