BCUT/WETH trades

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0xbef2…c406 and sell currency smart contract is 0xc02a…6cc2: smart contract, buy buyer, buy amount, buy seller, buy price, transaction hash and block time.

By Divyasshree N · saved 22 February 2024 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query ActiveToken {
  EVM(dataset: archive, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xbef26bd568e421d6708cca55ad6e35f8bfa0c406"}}}, Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 10}
    ) {
      Trade {
        Dex {
          Pair {
            SmartContract
          }
        }
        Buy {
          Buyer
          Amount
          Seller
          Price
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}

Similar queries