getWalletTrades

Returns the latest 10 DEX trades on Ethereum, where transaction hash is 0xea77…ae79: block hash, block number, block time, transaction hash, transaction index, sell seller, sell amount in USD and 17 more fields.

By Jose · saved 10 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query getWalletTrades($dataset: dataset_arg_enum!, $network: evm_network!) {
  EVM(network: $network, dataset: $dataset) {
    DEXTrades(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {
        Transaction: { Hash: { is: "0xea773139f6c8c3e326fc994d56a44038f0a3a34de47e48addfce03294231ae79" } }
        
      }
    ) {
      Block {
        Hash
        Number
        Time
      }
      Transaction {
        Hash
        Index
      }
      Trade {
        Sell {
          Seller
          AmountInUSD
          Amount
          Buyer
          Currency {
            Decimals
            Name
            SmartContract
            Symbol
          }
          PriceInUSD
        }
        Buy {
          Buyer
          AmountInUSD
          Amount
          Currency {
            Decimals
            Name
            SmartContract
            Symbol
          }
          PriceInUSD
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "dataset": "combined",
  "till": "2025-02-04T16:29:59.000Z",
  "since": "2024-02-04T00:00:00.000Z",
  "wallet": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}

Similar queries