first

Returns one DEX trade on Ethereum, where base currency is 0xd0b3…1a3d, sorted by block height trade index: trade index, transaction hash, iso8601, block height, quote currency address and base currency address.

By Omkar Acharekar · saved 30 August 2023 · run 7 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    firstTrade: dexTrades(
      baseCurrency: {is: "0xd0b3a986fff305854a7238a8e099cce1ced01a3d"}
      options: {asc: ["block.height", "tradeIndex"], limit: 1}
    ) {
      tradeIndex
      transaction {
        hash
      }
      block {
        timestamp {
          iso8601
        }
        height
      }
      quoteCurrency {
        address
      }
      baseCurrency {
        address
      }
    }
  }
}

Similar queries