https://bitquery.zendesk.com/agent/tickets/192

Returns the latest DEX trade on Ethereum and BNB Chain, where tx hash is 0xc7dc…1167: exchange name, transaction hash, block height, address address, base currency symbol, base currency address, quote currency symbol and 6 more fields.

By Sayon · saved 24 September 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, desc: "block.height"}
      txHash: {is: "0xc7dc9a21130ed9eeceed556f914323a98caf404395903797441986692d461167"}
    ) {
      exchange {
        name
      }
      transaction {
        hash
      }
      block {
        height
      }
      smartContract {
        address {
          address
        }
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        decimals
        address
      }
      baseAmount
      quoteAmount
      quotePrice
      tradeAmount(in: USD)
    }
  }
}

Similar queries