DEXTrades by hash

Returns DEX trades on Ethereum, where transaction hash is 0x0000…88a7: block time, transaction value, value in USD, transaction hash, buy amount, buy currency name, buy currency symbol and 9 more fields.

By lukas · saved 11 November 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQueryWithVariables($hash: [String!]) {
  EVM(dataset: archive, network: eth) {
    DEXTrades(where: {Transaction: {Hash: {in: $hash}}}) {
      Block {
        Time
      }
      Transaction {
        Value
        ValueInUSD
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            Name
            Symbol
            SmartContract
            Decimals
          }
          AmountInUSD
        }
        Sell {
          Amount
          Currency {
            Name
            SmartContract
            Symbol
            Decimals
          }
          AmountInUSD
        }
      }
    }
  }
}

Variables

{
  "hash": "0x00000f11ff81cdf9257804b28ad9b72548b396077f84a7f86c69e8d3773288a7"
}

Similar queries