buy_txn_txn_from

Returns the latest 5 DEX trades on Ethereum, where buy currency smart contract is 0x356e…26c9 and transaction from is 0xbb23…80b1 or 0xa6A5…423C: buy amount, buy buyer, buy seller, buy price, buy currency name, buy currency symbol, transaction hash and from.

By Omkar_BQ · saved 21 October 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      limit: {count: 5}
      orderBy: {descending: Block_Number}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}}}, Transaction: {From: {in: ["0xbb23c62329e7f80b3aadc35c0cfb26c7097d80b1", "0xa6A549cf865fd5bF543f9d92db055A099a14423C"]}}}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Seller
          Price
          Currency {
            Name
            Symbol
          }
        }
      }
      Transaction {
        Hash
        From
      }
    }
  }
}

Similar queries