Get Pancakeswap V1 pair address

Returns one DEX trade on BNB Chain, where buy currency smart contract is 0xbb4c…095c and sell currency smart contract is 0xf8a0…51bd: pair name, pair symbol and smart contract.

By Omkar Acharekar · saved 30 May 2023 · run 11 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      limit: {count: 1}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}}}, Sell: {Currency: {SmartContract: {is: "0xf8a0bf9cf54bb92f17374d9e9a321e6a111a51bd"}}}}}
    ) {
      Trade {
        Dex {
          Pair {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries