Issue with tx_reward for API v1 data

When pulling tx_reward via V1 API, the results look weird

for example, the tx_rewards for the blocks 0, 1, 2 … show 5.000000078466254, which should be 5 as an integer.

this problem is reproducible on other blocks as well

would someone take a look? thanks

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    blocks(
      options: {asc: "height", limit: $limit, offset: $offset}
      height: {gt: 10000000}
    ) {
      timestamp {
        unixtime
      }
      height
      transactionCount
      reward
      gasUsed
      gasLimit
    }
  }
}

query MyQuery {
EVM(dataset: archive, network: eth) {
MinerRewards(
limit: {count: 2}
orderBy: {descending: Block_Number}
where: {Block: {Date: {in: “2024-05-10”}}}
) {
Reward {
Total
}
Block {
Hash
Number
}
}
}
}
" Use V2 doc API, Modify it according to your query. Furthermore, if you want to get reward as integer value then you need to change the code.

Thanks for the answer. but unfortunately , that won’t solve the problem

  1. V2 has its own problem (e.g. duplicate non-unique blocks) , as i posted in another thread several days ago.

  2. it’s not about converting float to integer, it’s more about the correctness of the data . the V1 rewards data is incorrect. please take a deeper look at it

I don’t get the 1st problem,

2nd problem, converting value is very basic programming thing, and it should be done on your side