# Why there are duplicate blocks in results of API v2?

**URL:** <https://community.bitquery.io/t/why-there-are-duplicate-blocks-in-results-of-api-v2/1899>\
**Category:** GraphQL API\
**Tags:** support, open\
**Created:** [April 29, 2024, 10:02pm UTC](https://community.bitquery.io/t/why-there-are-duplicate-blocks-in-results-of-api-v2/1899 "2024-04-29T22:02:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.bitquery.io/u/sean)\
**Post date:** [April 29, 2024, 10:02pm UTC](https://community.bitquery.io/t/why-there-are-duplicate-blocks-in-results-of-api-v2/1899/1 "2024-04-29T22:02:40Z")

</div>

```auto
query MyQuery {
  EVM(dataset: archive, network: eth) {
    MinerRewards(limit: {count: 10}, orderBy: {ascending: Block_Number}) {
      Reward {
        Total
        ..... 
      }
      Block {
        Number
        Time
      }
    }
  }
}

```

give me duplicate entries with the same height

```auto
{
        "Block": {
          "Number": "4",
          "Time": "2015-07-30T15:27:57Z"
        },
        "Reward": {
          "BurntFees": "0.000000000000000000",
          "Dynamic": "0.000000000000000000",
          "Static": "0.000000000000000000",
          "Total": "3.125000000000000000",
          "TxFees": "0.000000000000000000"
        }
      },
      {
        "Block": {
          "Number": "4",
          "Time": "2015-07-30T15:27:57Z"
        },
        "Reward": {
          "BurntFees": "0.000000000000000000",
          "Dynamic": "0.000000000000000000",
          "Static": "5.000000000000000000",
          "Total": "5.156250000000000000",
          "TxFees": "0.000000000000000000"
        }
      },

```

why there are 2 blocks with the same height “4”? how to resolve that? (the chain is ethereum)

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 3, 2024, 8:16am UTC](https://community.bitquery.io/t/why-there-are-duplicate-blocks-in-results-of-api-v2/1899/2 "2024-05-03T08:16:27Z")

</div>

> [@sean](#):
>
> ```auto
> query MyQuery {
> EVM(dataset: archive, network: eth) {
> MinerRewards(limit: {count: 10}, orderBy: {ascending: Block_Number}) {
> Reward {
> Total
> ..... 
> }
> Block {
> Number
> Time
> }
> }
> }
> }
> 
> ```

Mean while we fix this problem limit it by Blocknumber and it will fix you problem

> **[miner data eth - Blockchain Data API](https://ide.bitquery.io/miner-data-eth)**
>
> miner data eth

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://community.bitquery.io/u/sean)\
**Post date:** [May 9, 2024, 5:40pm UTC](https://community.bitquery.io/t/why-there-are-duplicate-blocks-in-results-of-api-v2/1899/3 "2024-05-09T17:40:50Z")

</div>

@gaurav Thanks, is there any update on this?

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 13, 2024, 8:02am UTC](https://community.bitquery.io/t/why-there-are-duplicate-blocks-in-results-of-api-v2/1899/4 "2024-05-13T08:02:09Z")

</div>

> [@gaurav](#):
>
> [miner data eth - Blockchain Data API](https://ide.bitquery.io/miner-data-eth)

Please try this query, it will solve your problem

```grpahl
query MyQuery {
  EVM(dataset: archive, network: eth) {
    MinerRewards(
      limitBy: {by: Block_Number, count: 1}
      limit: {count: 10}
      orderBy: {ascending: Block_Number}
    ) {
      Reward {
        Total
      }
      Block {
        Number
        Time
      }
    }
  }
}
```
