public IEnumerable <T> Query(ChainBase chain, BalanceQuery query = null) { if (query == null) { query = new BalanceQuery(); } var tableQuery = query.CreateTableQuery(Escape(Scope), ""); return(ExecuteBalanceQuery(Table, tableQuery, query.PageSizes) .Where(_ => chain.Contains(((ConfirmedBalanceLocator)UnEscapeLocator(_.RowKey)).BlockHash)) .Select(_ => Serializer.ToObject <T>(ParseData(_)))); }