test two tokens

Returns 10 balance updates on Solana, where currency mint address is EPjFWd…Dt1v, sorted by balance update holding maximum, highest first: 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: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 10}
    ) {
      BalanceUpdate {
        Account {
          Address
          Owner
        }
        Holding: PostBalance(maximum: Block_Slot, selectWhere: {gt: "0"})
      }
      joinBalanceUpdates(
        BalanceUpdate_Account_Owner: BalanceUpdate_Account_Owner
        join: inner
        orderBy: {descendingByField: "BalanceUpdate_Holding_maximum"}
        where: {BalanceUpdate: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}
      ) {
        BalanceUpdate {
          Account {
            Address
            Owner
          }
          Holding: PostBalance(maximum: Block_Slot, selectWhere: {gt: "0"})
        }
      }
    }
  }
}

Similar queries