class RemoteValidatorApiHandler implements ValidatorApiChannel {

  @Override
  public void sendSignedAttestation(final Attestation attestation) {
    final tech.pegasys.teku.api.schema.Attestation schemaAttestation =
        new tech.pegasys.teku.api.schema.Attestation(attestation);

    asyncRunner
        .runAsync(() -> apiClient.sendSignedAttestation(schemaAttestation))
        .finish(error -> LOG.error("Failed to send signed attestation", error));
    ;
  }

  public  RemoteValidatorApiHandler(final ServiceConfig config, final AsyncRunner asyncRunner);
  @VisibleForTesting public  RemoteValidatorApiHandler(
      final ValidatorRestApiClient apiClient, final AsyncRunner asyncRunner);

}