get_tx

Returns 100 DEX trades on Ethereum: tx from address, to address, transaction hash, trade amount, timestamp time, block height and base currency symbol.

By che1 · saved 25 July 2023 · Bitquery API v1

What it returns

The query

query MyQuery($token_address: String!, $limit: Int!) {
  ethereum(network: ethereum) {
    dexTrades(options: {ascByInteger: "block.timestamp.time", limit: $limit}) {
      transaction {
        txFrom {
          address
        }
        to {
          address
        }
        hash
      }
      tradeAmount(in: USDT)
      block(time: {}) {
        timestamp {
          time
        }
        height
      }
      baseCurrency(baseCurrency: {is: $token_address}) {
        symbol
      }
    }
  }
}

Variables

{
  "token_address": "0xa3c31927a092bd54eb9a0b5dfe01d9db5028bd4f",
  "limit": 100
}

Similar queries