send_recieve

Returns transfers on Ethereum and Avalanche, where currency is 0xb31f…66c7, receiver is 0x96bc…55fd and sender is 0x96bc…55fd: amount.

By Omkar_BQ · saved 31 July 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!,$from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    received:transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      currency: {is: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}
      receiver: {is: $address}
    ) {
      recieve:amount(calculate:sum)
    }
    send:transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      currency: {is: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}
      sender: {is: $address}
    ) {
      sent:amount(calculate:sum)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "avalanche",
  "address": "0x96bcf8a9b2e9de1fc74d9acfdf467b9bc50655fd",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries