Bitquery<>CheaperTownHall query issue

Returns DEX trades on BNB Chain, where transaction hash is 0x2af5…21de, DEX protocol family is not FourMeme and DEX protocol name is not uniswap_v4, sorted by transaction index: block time, block number, transaction hash, transaction index, nonce, log index, smart contract and 24 more fields.

By Kshitij Mahajan · saved 31 October 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: bsc, mempool: false) {
    DEXTrades(
      orderBy: {ascending: Transaction_Index}
      where: {any: [{Trade: {Buy: {AmountInUSD: {gt: "10"}}}}, {Trade: {Sell: {AmountInUSD: {gt: "10"}}}}], Trade: {Dex: {ProtocolFamily: {not: "FourMeme"}, ProtocolName: {not: "uniswap_v4"}}}, TransactionStatus: {Success: true}, Transaction: {Hash: {is: "0x2af553d2538146d2bc568b209884f4d6b0579ef467f52a275593b5a32aa721de"}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Index
        Nonce
      }
      Log {
        Index
        SmartContract
      }
      Trade {
        Sender
        Buy {
          Buyer
          AmountInUSD
          Amount
          Seller
          PriceInUSD
          Price
          Currency {
            Name
            Symbol
            SmartContract
            Fungible
          }
        }
        Dex {
          SmartContract
          ProtocolName
          ProtocolVersion
          ProtocolFamily
        }
        Sell {
          Buyer
          AmountInUSD
          Amount
          Seller
          PriceInUSD
          Price
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      Call {
        Signature {
          Name
        }
      }
    }
  }
}

Similar queries