Copy of all tokens held by owner

Returns balance updates on Solana, where currency mint address is EKpQGS…zcjm, sorted by balance update holding maximum, highest first: currency name, currency mint address, currency symbol, account address, account owner and post balance.

By Divyasshree · saved 29 May 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime, network: solana, aggregates: yes) {
    BalanceUpdates(
      orderBy: {descendingByField: "BalanceUpdate_Holding_maximum"}
      where: {BalanceUpdate: {Currency: {MintAddress: {is: "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"}}}, Transaction: {Result: {Success: true}}}
    ) {
      BalanceUpdate {
        Currency {
          Name
          MintAddress
          Symbol
        }
        Account {
          Address
          Owner
        }
        Holding: PostBalance(maximum: Block_Slot, selectWhere: {gt: "0"})
      }
      allothertokens: joinBalanceUpdates(
        BalanceUpdate_Account_Owner: BalanceUpdate_Account_Owner
        where: {BalanceUpdate: {Currency: {MintAddress: {not: "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"}}}}
      ) {
        BalanceUpdate {
          Currency {
            Name
            MintAddress
            Symbol
          }
          Account {
            Address
            Owner
          }
          Holding: PostBalance(maximum: Block_Slot, selectWhere: {gt: "0"})
        }
      }
    }
  }
}

Similar queries