test query

Returns the latest DEX trade by token on Ethereum, where transaction hash is 0xcae0…0c71: chain ID, block number, block time, seller, buyer, trade amount, smart contract and 13 more fields.

By gaurav · saved 8 November 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!) {
  EVM(network: $network dataset:archive) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Transaction: {
        Hash: {
          is: "0xcae05e9563238c6b787ded82ff703ad112ca638a8554709c1b9e194f420b0c71"
        }
      }}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Trade {
        Seller
        Buyer
        Amount
        Currency {
          SmartContract
          Symbol
        }
        Price
        Side {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
      }
      Transaction {
        Hash
        Gas
        GasPrice
        Value
        GasTipCap
        GasFeeCap
        From
        Cost
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 1,
  "offset": 0,
  "token": "0x5f64ab1544d28732f0a24f4713c2c8ec0da089f0"
}

Similar queries