Type alias RpcCall<method_s, params_t>
RpcCall<method_s, params_t>: { jsonrpc: "2.0"; id: number | string; method: method_s; params: params_t }
Type Parameters
-
method_s extends string
-
params_t extends object
Type declaration
-
jsonrpc: "2.0"
-
id: number | string
-
method: method_s
-
params: params_t
This type is used for requests from the client to the server that require a response.
(layer 3)
Example