@statechannels/client-api-schema > JsonRpcRequest

JsonRpcRequest interface

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.

Specifies request headers as per JSON-RPC 2.0 Specification

Signature:

export interface JsonRpcRequest<MethodName = string, RequestParams = object>

Properties

PropertyTypeDescription
idnumber(BETA) Identifier for the resquest
jsonrpc'2.0'(BETA) Spec version
methodMethodName(BETA) Generic type of the request method
paramsRequestParams(BETA) Request parameters
Last updated on by geoknee