Pairs of a token on Uniswap v1, V2, v3

Returns 10 DEX trades on Ethereum, where DEX owner address is 0xc0a4…4d95, 0x5c69…aa6f or 1 more and buy currency smart contract is 0x5283…8b44: protocol name, owner address, protocol version, smart contract, pair name, pair symbol, buy currency name and 3 more fields.

By gaurav · saved 13 May 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex:{
            OwnerAddress:{
              in:[
                "0xc0a47dfe034b400b47bdad5fecda2621de6c4d95",
                "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
                "0x1f98431c8ad98523631ae4a59f267346ea31f984"
              ]
            }
          }
          Buy: {
            Currency: {
              SmartContract: {
                is: "0x5283d291dbcf85356a21ba090e6db59121208b44"
              }
            }
          }
        }
      }
      limit: { count: 10 }
      limitBy: { by: Trade_Sell_Currency_SmartContract, count: 1 }
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries