Graphql Query Liquidity Pairs

benmcd555
Wed, 24 Nov 2021 20:56:59 +0000
GraphQL API

Hi. Is there something wrong with this query?. I am trying to distinguish between mint events between two different pairs. But it is only showing mint events for the first pair listed in the query. Thanks

Query:

query MyQuery {
ethereum {
smartContractEvents(
smartContractAddress: {in: [“0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc”, “0x6C3e4cb2E96B01F4b866965A91ed4437839A121a”]}
smartContractEvent: {is: “Mint”}
options: {limit: 1000, desc: “block.height”}
) {
block {
height
}
arguments {
value
argument
}
smartContract {
currency {
symbol
}
address {
address
}
}
}
}
}

Result:

{
“ethereum”: {
“smartContractEvents”: [
{
“block”: {
“height”: 13677978
},
“arguments”: [
{
“value”: “0x7a250d5630b4cf539739df2c5dacb4c659f2488d”,
“argument”: “sender”
},
{
“value”: “63131278135”,
“argument”: “amount0”
},
{
“value”: “14999999999986070848”,
“argument”: “amount1”
}
],
“smartContract”: {
“currency”: {
“symbol”: “UNI-V2”
},
“address”: {
“address”: “0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc”
}
}
},

3 posts - 3 participants