test balance tokens join

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

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 } }
      }
      limit:{count:1}
    ) {
      BalanceUpdate {
        Account {
          Owner
          Address
        }
        Currency {
          Name
          Symbol
        }
        Holding: PostBalance(maximum: Block_Slot, selectWhere: { gt: "0" })
      }

      allothertokens: joinBalanceUpdates(
        BalanceUpdate_Account_Owner: BalanceUpdate_Account_Owner
     
      
        orderBy: { descendingByField: "BalanceUpdate_Holding_maximum" }
        limit:{count:100}
      ) {
        BalanceUpdate {
          Currency {
            Name
            Symbol
            MintAddress
          }
    Holding: PostBalance(maximum: Block_Slot, selectWhere: { gt: "0" })
        }
      }
    }
  }
}

Similar queries