wrong dex

Returns the latest 100 DEX trades on Ethereum, where tx hash is 0x2e22…8de1: transaction hash, gas price, gas, tx from address, address address, contract type, currency name and 17 more fields.

By 12312slfsdfweafew · saved 11 July 2023 · Bitquery API v1

What it returns

Filters

The query

query  {
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "block.height", limit: 100}
      txHash: {is: "0x2e226193eae6af27ef7096e2c93d033103ab30942c3b22b549de6f09002f8de1"}
    ) {
      transaction {
        hash
        gasPrice
        gas
        txFrom {
          address
        }
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
        protocolType
      }
      block {
        height
        timestamp {
          iso8601
        }
      }
      buyAmount
      buyAmountInETH: buyAmount(in: ETH)
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
        name
      }
      sellCurrency {
        symbol
        address
        name
      }
      tradeAmount(in: ETH)
      sellAmount
      sellAmountInETH: sellAmount(in: ETH)
      sellAmountInUsd: sellAmount(in: USD)
      exchange {
        fullName
        fullNameWithId
      }
      gasValueETH: gasValue(in: ETH)
      gasValueUSD: gasValue(in: USD)
      taker {
        address
      }
      maker {
        address
      }
    }
  }
}

Similar queries