I ran the following query, which is supposed to fetch events with 0x9bb2f1bc11fcf50a0cb92646941a4a80b79fc5c3 in the “from” field, and
0xddcae86c29884f1e400a5b50482452cf4dcef08e in the “to” field.
Unfortunately, in the results, I’m getting 0x0… in one from field, and 0x0, in another result of the to field, leading me to believe either I got the query wrong, or Bitquery is buggy.
First question, why doesn’t Bitquery only return events with the “from” and the “to” as specified?
Second question, is the query run with an AND condition, or an OR condition for the anyfrom and anyto fields?
{
ethereum(network: bsc) {
arguments(
options: {desc: ["block.height", "index"]}
smartContractAddress: {in: "0x2d956093d27621ec0c4628b77eaeac6c734da02c"}
smartContractEvent: {is: "Transfer"}
) {
block {
height
}
anyfrom: any(
of: argument_value
argument: {is: "from"}
value: {is: "0x9bb2f1bc11fcf50a0cb92646941a4a80b79fc5c3"}
)
anyto: any(
of: argument_value
argument: {is: "to"}
value: {is: "0xddcae86c29884f1e400a5b50482452cf4dcef08e"}
)
index
from: any(of: argument_value, argument: {is: "from"})
to: any(of: argument_value, argument: {is: "to"})
}
}
}