Hi in the following query to look up the users token balances as of May 2020:
query MyQuery {
EVM(dataset: combined, network: eth) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {is: "0x010f7ec243bb5e7ed2b54cce49ca147e540e56fc"}}, Block: {Time: {till: "2020-05-01T22:16:59Z"}}}
) {
Currency {
Name
SmartContract
ProtocolName
Symbol
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "100000", lt: "499000"})
}
}
}
You get the following token but this seems to contradict etherscan:
{
"EVM": {
"BalanceUpdates": [
{
"Currency": {
"Name": "",
"ProtocolName": "erc20",
"SmartContract": "0xe0b7927c4af23765cb51314a0e0521a9645f0e2a",
"Symbol": ""
},
"balance": "466490"
}
]
}
}
Although this user had this token at several points, he trades it almost as soon as it hits his wallet each time. Whereas in bitquery it shows that his balance was 466,490.
Note the address or the date or token isn’t important here.
Its just a random example thats easy to see for data validation purposes.
What causes this issue and is there a fix for it?
Thank you in advance!