Address query as all possible combinations

slow query simpliance

Returns transfers and calls on Ethereum, where transfer receiver is 0x1924…5f27, transfer sender is 0x1924…5f27 and call from is 0x1924…5f27: count and unique of transaction hash.

By Aleksey · saved 26 March 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query ($address: String) {
  EVM(network: eth, dataset: combined) {
    
    in: Transfers(
      where: {Transfer: {Receiver: {is: $address}}}
    ) {
      transfers: count
    	transactions: uniq(of: Transaction_Hash method: approximate)
    }
    
    out: Transfers(
      where: {Transfer: {Sender: {is: $address}}}
    ) {
      transfers: count
    	transactions: uniq(of: Transaction_Hash method: approximate)
    }
    
    calls_smart_contracts: Calls(
      where: {Call: {From: {is: $address}}}
    ) {
      transfers: count
    	transactions: uniq(of: Transaction_Hash method: approximate)
    }
    
    is_smart_contract: Calls(
      where: {Call: {To: {is: $address}}}
    ) {
      transfers: count
    	transactions: uniq(of: Transaction_Hash method: approximate)
    }
    
  }
}

Variables

{
  "address": "0x192420795e6a2c80c4a90f8a380d792145985f27"
}

Similar queries