RpcClient

Description

RpcClient is simple client wrapper for any JSON RPC server. RpcClient can be used to make requests to the operator or to any other client. A list of available RPC methods are specified separately.


API

Methods

send

async function send(request: JsonRpcRequest): Promise<JsonRpcResponse>
Description

Sends a JSON RPC request to the client’s specified server and returns the corresponding JSON RPC response.

Parameters
  1. request - JsonRpcRequest: A JSON RPC request object to send to the server.
Returns

JsonRpcResponse: A JSON RPC response object sent back by the server.