currency sent and received by an address between a time

Returns 10 transfers on Solana, where currency is SOL, date since 2019-01-01 and date till 2025-01-01, sorted by count in count out, highest first: amount, count big int, currency address, currency symbol and token type.

By Omar · saved 9 July 2025 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: SolanaNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int!, $offset: Int!) {
  solana(network: $network) {
    transfers(
      date: {since: $from, till: $till}
      any: [{receiverAddress: {is: $address}}, {senderAddress: {is: $address}}]
      options: {limit: $limit, offset: $offset, desc: ["count_in", "count_out"], asc: "currency.symbol"}
      currency: {is: "SOL"}
    ) {
      sum_in: amount(calculate: sum, receiverAddress: {is: $address})
      sum_out: amount(calculate: sum, senderAddress: {is: $address})
      count_in: countBigInt(receiverAddress: {is: $address})
      count_out: countBigInt(senderAddress: {is: $address})
      currency {
        address
        symbol
        tokenType
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "solana",
  "address": "AVHUQjWAxUgRWdMrxf9w2CEwqLBwkjjFtzobadSXNRZ7",
  "from": "2019-01-01",
  "till": "2025-01-01",
  "dateFormat": "%Y-%m-%d"
}

Similar queries