GF/USDC Tx

Get last N transactions from a Uniswap pool

Returns 10 DEX trades on Ethereum, where base currency is 0xaaef…e238 and quote currency is 0xa0b8…eb48, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, quote currency symbol and quote price.

By Thalita · saved 10 December 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0xaaef88cea01475125522e117bfe45cf32044e238"}
      quoteCurrency: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}
      options: {desc: ["block.height", "transaction.index"], limit: 10}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

Similar queries