Affiliate/Apps trades receive

This query fetchs all affiliate fees received by an affiliate address, fetchs amount in USD and amount normal

By Jao · saved 20 April 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $sender: String!, $receiver: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "block.height", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      sender: {is: $sender}
      receiver: {is: $receiver}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      amountUSD: amount(in: USD)
      amount
      transaction {
        hash
      }
      external
      currency {
        address
        name
        symbol
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "limit": 50,
  "offset": 0,
  "receiver": "0xD041F2Dc17323B6E6AB32e3887dc36b94e4C03Fc",
  "sender": "0x22F9dCF4647084d6C31b2765F6910cd85C178C18",
  "from": "2021-03-10",
  "till": "2021-03-20"
  
}

Similar queries