query by sender or receiver

Returns 5000 transfers on Ethereum, where receiver is 0x6efd…2755, date since 2021-01-01 and date till 2021-11-10: sender address, annotation, contract type, protocol type, receiver address, amount, currency symbol and 9 more fields.

By qiyh42an · saved 13 November 2021 · run 7 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      external: true
      receiver: {is: $address}
      # how to query for sender as well?
      # I want something like
      # OR: [ {receiver: {is: $address}}, {sender: {is: $address}}]
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          protocolType
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          protocolType
        }
      }
      amount
      currency {
        symbol
        address
        name
        decimals
        tokenId
        tokenType
      }
      external
      entityId
      transaction {
        hash
      }
      block {
        timestamp {
          iso8601
        }
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "address": "0x6efdb9ba5539e356b2cdadf70ce45ac396b62755",
  "limit": 5000,
  "offset": 0,
  "from": "2021-01-01",
  "till": "2021-11-10"
}

Similar queries