Type alias RpcCast<method_s, params_t>
RpcCast<method_s, params_t>: { jsonrpc: "2.0"; method: method_s; params: params_t }
Type Parameters
-
method_s extends string
-
params_t extends object
Type declaration
-
jsonrpc: "2.0"
-
method: method_s
-
params: params_t
This type is used for "notifications", i.e. messages sent from the client to the server that do not need a response. An example is the wallet announcing it exists.
(layer 3)
Example