interface Transport {
    request(data: JsonRpcPayload): Promise<unknown>;
}

Implemented by

Methods

Methods

  • Sends a JSON-RPC request to the server.

    Parameters

    Returns Promise<unknown>

    The result of the JSON-RPC request.

    Will throw an error if the response ID does not match the request ID, or if the response contains an error.