Token Trades

Returns DEX trades on Ethereum, where transaction hash is 0x57f1…1761: chain ID, block time, block number, buy buyer, buy currency symbol, buy smart contract, buy amount and 8 more fields.

By Nadia · saved 2 August 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $hash: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(where: {Transaction: {Hash: {is: $hash}}}) {
      ChainId
      Block {
        Time
        Number
      }
      Trade {
        Buy {
          Buyer
          Currency {
            Symbol
            SmartContract
          }
          Amount
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
          Buyer
          Amount
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "hash": "0x57f12f96266f1e472982555d9d760429bfceb4c5defed172fd4c787199771761"
}

Similar queries