UpTicekt_824_Uppsala_Data_disparity_between_rest_api_and_GraphQL

Returns transfers and transactions on Ethereum and BNB Chain, where caller is 0xb2bE…7382, address is 0xb2bE…7382 and date since 2000-01-01: minimum of block, maximum of block, amount, count, gas value and balance.

By pablo · saved 22 September 2022 · run 16 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    transfers(
      date: {since: "2000-01-01T00:00:00", till: "2022-11-19T12:57:27.763204"}
      any: [{receiver: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}}, {sender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}}]
    ) {
      first_transfer_at: minimum(of: block, get: time)
      last_transfer_at: maximum(of: block, get: time)
      receive_amount: amount(
        calculate: sum
        receiver: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
        in : ETH
      )
      send_amount: amount(
        calculate: sum
        sender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
        in : ETH
      )
      receive_from_count: count(
        uniq: senders
        receiver: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      send_to_count: count(
        uniq: receivers
        sender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      receive_from_currencies: count(
        uniq: currencies
        receiver: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      send_to_currencies: count(
        uniq: currencies
        sender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      days_with_received: count(
        uniq: dates
        receiver: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      days_with_sent: count(
        uniq: dates
        sender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      days_with_transfers: count(uniq: dates)
      send_tx_count: count(
        uniq: txs
        sender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
      receive_tx_count: count(
        uniq: txs
        receiver: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
      )
    }
    transactions(
      any: [{txTo: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}}, {txSender: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}}]
    ) {
      fee_amount: gasValue
      first_tx_at: minimum(of: block, get: time)
      last_tx_at: maximum(of: block, get: time)
      days_with_transactions: count(uniq: dates)
    }
    smartContractCalls(caller: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}) {
      call_tx_count: count
      minimum(of: block, get: date)
    }
    balancedata: address(
      address: {is: "0xb2bE75AE48f753B9a3D94D75251679702aE87382"}
    ) {
      balance
    }
  }
}

Similar queries