StatsQuery

Returns calls on Ethereum, where call to is 0xdac1…1ec7 or 0xa0b8…eb48, signature name is transfer and call depth is 0, sorted by success: to and count.

By pol · saved 16 November 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query TransactionsQuery($network: evm_network, $addresses: [String!]) {
  data: EVM(dataset: archive, network: $network) {
    transfers: Calls(
      where: {Call: {To: {in: $addresses}, Signature: {Name: {is: "transfer"}}, Depth: {eq: 0}}}
    ) {
      token: Transaction {
        address: To
      }
      total: count
      fails: count(if: {Call: {Success: false}})
      success: count(if: {Call: {Success: true}})
    }
		senders: Calls(
      where: {Call: {To: {in: $addresses}, Signature: {Name: {is: "transfer"}}, Depth: {eq: 0}}}
      orderBy: {ascendingByField: "success"}
    ) {
      token: Transaction {
        address: To
      }
			total: count
      fails: count(if: {Call: {Success: false}})
      success: count(if: {Call: {Success: true}})
    } 
  }
}

Variables

{
  "network": "eth",
  "addresses": ["0xdac17f958d2ee523a2206206994597c13d831ec7", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"],
  "date": "2024-11-16",
  "amount": 1000
}

Similar queries