class QueryApiImpl extends AbstractApi implements QueryApi {

  @Override
  public Subscription<BlockMetadata> subscribeBlockMetadata(
      final StreamObserver<BlockMetadata> observer) {
    try {
      return getClient().getBlockOperation().subscribeBlockMetadata(observer);
    } catch (Exception e) {
      throw converter.convert(e);
    }
  }

}