top trading pairs on base

Returns 25 DEX trades by token on Base, where DEX owner address is 0x8909…8eC6, currency smart contract is 0x4200…0006 and block time after 2024-06-10, sorted by trade count, highest first: count, smart contract, owner address, currency symbol, side currency symbol and side smart contract.

By Akshat · saved 10 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query TrendingPairs($network: evm_network!, $since: DateTime!, $factory: String!, $weth: String!, $limit: Int!) {
  EVM(dataset: combined, network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "TradeCount"}
      where: {Block: {Time: {after: $since}}, Trade: {Dex: {OwnerAddress: {is: $factory}}, Currency: {SmartContract: {is: $weth}}}}
      limit: {count: $limit}
    ) {
      TradeCount: count
      Trade {
        Dex {
          SmartContract
          Pair {
            SmartContract
          }
          OwnerAddress
        }
        Currency {
          Symbol
          SmartContract
        }
        Side {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "base",
  "since": "2024-06-10T12:22:29Z",
  "factory":"0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6",
  "weth": "0x4200000000000000000000000000000000000006",
  "limit": 25
}

Similar queries