problem

Returns DEX trades on Ethereum, where transaction hash is 0xc5cf…55ec: buy buyer, buy seller, buy currency name, buy amount, sell buyer, sell seller, sell currency name and sell amount.

By Omkar_BQ · saved 19 December 2023 · run 25 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($excludeBuyWallets: [String]) {
  EVM(dataset: archive, network: eth) {
    DEXTrades(
      where: {Transaction: {Hash: {is: "0xc5cf7882e60f1b3f6f0fb261e02d8f8c3ab58e3b3b5ef8fa93475406e30355ec"}}, Trade: {Sell: {Buyer: {notIn:  $excludeBuyWallets}}}}
    ) {
      Trade {
        Buy {
          Buyer
          Seller
          Currency {
            Name
          }
          Amount
        }
        Sell {
          Buyer
          Seller
          Currency {
            Name
          }
          Amount
        }
      }
    }
  }
}

Variables

{
   "$excludeBuyWallets": [
    "0x7aaf07a96c311637d6113ab318ac870c8ec6b222"
  ]
}

Similar queries