Inflows and Outflows calculation - Solana

currency sent and received by an address between a time

Returns 999999999 transfers on Solana, where date since 2025-06-25 and date till 2025-06-25, sorted by count in count out, highest first: amount, count big int, currency address, currency symbol and token type.

By Ted · saved 12 November 2025 · 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"}
    ) {
      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": 999999999,
  "offset": 0,
  "network": "solana",
  "address": "ADDRESS HERE",
  "from": "2025-06-25",
  "till": "2025-06-25T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries