DEX Smart Contracts

Returns 10 DEX trades on Ethereum, where DEX protocol name is uniswap_v2, block date since 2023-07-10 and block date till 2023-07-10, sorted by trades, highest first: chain ID, count, protocol name and smart contract.

By Nadia · saved 17 February 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $protocol: String, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Dex: {ProtocolName: {is: $protocol}}}}
      orderBy: {descendingByField: "trades"}
    ) {
      ChainId
      trades: count
      buy_currency: count(distinct: Trade_Sell_Buyer)
      Trade {
        Dex {
          ProtocolName
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "protocol": "uniswap_v2",
  "limit": 10,
  "from": "2023-07-10",
  "till": "2023-07-10"
}

Similar queries