• Runs the request callback and retries a number of times if requestCallback resolves to a method not found error

    Parameters

    • requestCallback: (() => Promise<JSONRPCResponse>)

      Function to run to send a JSON-RPC request. Should return a JSONRPC error with code JSONRPCErrorCode.MethodNotFound if it fails to find the method

        • (): Promise<JSONRPCResponse>
        • Returns Promise<JSONRPCResponse>

    • name: string

      Name of the handler running this request for logging purposes

    • requestType: string

      Type of request for logging purposes

    Returns Promise<JSONRPCResponse>

    The response from the request including the method not found error if it times out