Get Uniswap V3 pair address

Returns DEX trades on Ethereum, where buy currency is 0xc02a…6cc2, sell currency is 0x5149…86ca and protocol is Uniswap v3: address address, protocol type and protocol.

By Omkar Acharekar · saved 31 May 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limitBy: {each: "smartContract.address.address", limit: 1}}
      buyCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      sellCurrency: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}
      protocol: {is: "Uniswap v3"}
    ) {
      smartContract {
        address {
          address
        }
        protocolType
      }
      protocol
    }
  }
}

Variables

{
 
  "network": "ethereum"
  
}

Similar queries