Tx in mempool

Returns 100 DEX trades on Ethereum, where DEX smart contract is 0x197d…13f8: transaction hash, buy amount, buy currency name, buy buyer, sell amount, sell currency name and sell buyer.

By gaurav · saved 2 January 2024 · run 25 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $pool: String!) {
  EVM(mempool: true, network: $network) {
    DEXTrades(
      limit: {count: $limit}
      where: {Trade: {Dex: {SmartContract: {is: $pool}}}}
    ) {
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            Name
          }
          Buyer
        }
        Sell {
          Amount
          Currency {
            Name
          }
          Buyer
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 100,
  "offset": 0,
  "token": "0xa41d2f8ee4f47d3b860a149765a7df8c3287b7f0",
  "pool": "0x197d7010147df7b99e9025c724f13723b29313f8"
}

Similar queries