@statechannels/client-api-schema > isJsonRpcRequest

isJsonRpcRequest() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Type guard for JsonRpcRequest

Signature:

export declare function isJsonRpcRequest(message: any): message is JsonRpcRequest;

Parameters

ParameterTypeDescription
messageany

Returns:

message is JsonRpcRequest

true if the message is a JSON-RPC request, false otherwise

Last updated on by geoknee