Get Sushiswap V2 pair address

Returns 10 DEX trades on Ethereum, where buy currency smart contract is 0x5149…86ca and sell currency smart contract is 0xc02a…6cc2: pair name, pair symbol and smart contract.

By Omkar Acharekar · saved 31 May 2023 · run 10 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 10}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}}}, Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}}
      limitBy: {by: Trade_Dex_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          Pair {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries