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
V2 has its own problem (e.g. duplicate non-unique blocks) , as i posted in another thread several days ago.
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