prova1

Returns the latest 10 DEX trades on Arbitrum, where transaction from is 0xCfab…c388 and block time since 2024-01-01: block time, transaction hash, protocol name, buy amount, buy currency symbol, buy smart contract, buy amount in USD and 4 more fields.

By Daniel · saved 20 May 2025 · Bitquery API v2

What it returns

Filters

The query

query WalletDEXActivity($network: evm_network!, $walletAddress: String!, $limit: Int!, $since: DateTime!) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      where: {
        Transaction: { From: { is: $walletAddress } },
        Block: { Time: { since: $since } }
      }
      orderBy: { descendingByField: "Block_Time" }
      limit: { count: $limit }
    ) {
      Block { Time }
      Transaction { Hash }
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Amount
          Currency { Symbol SmartContract }
          AmountInUSD # <--- CAMBIATO QUI
        }
        Sell {
          Amount
          Currency { Symbol SmartContract }
          AmountInUSD # <--- CAMBIATO QUI
        }
      }
    }
  }
}

Variables

{
  "network": "arbitrum",
  "walletAddress": "0xCfaba3994C45aa03e479000300801AE35B39c388", 
  "limit": 10,
  "since": "2024-01-01T00:00:00Z" 
}

Similar queries