class OkHttpValidatorRestApiClient implements ValidatorRestApiClient {

  @Override
  public Optional<Attestation> createAggregate(final Bytes32 attestationHashTreeRoot) {
    final Map<String, String> queryParams = new HashMap<>();
    queryParams.put("slot", encodeQueryParam(UInt64.ZERO));
    queryParams.put("attestation_data_root", encodeQueryParam(attestationHashTreeRoot));

    return get(GET_AGGREGATE, queryParams, Attestation.class);
  }

  public  OkHttpValidatorRestApiClient(final String baseEndpoint);
  @VisibleForTesting  OkHttpValidatorRestApiClient(final HttpUrl baseEndpoint, final OkHttpClient okHttpClient);

}