• Performs an HTTP request to an RPC endpoint

    Parameters

    • url: string

      URL for the HTTP request

    • json: JsonRpcRequest

      Request body

    • headers: object

      HTTP headers to include with the request

    Returns Promise<any>

    Promise }arsed JSON response from the HTTP request.