dddde

Returns balance updates on Solana, sorted by block time: post balance, currency symbol and currency mint address.

By Lochana Perera · saved 17 October 2024 · Bitquery API v2

What it returns

The query

query MyQuery {
  Solana {
    BalanceUpdates(
      where: {BalanceUpdate: {Account: {Owner: {is: $walletAddress}}}, Block: {Time: {after: $afterTime}}}
      orderBy: {ascending: Block_Time}
    ) {
      BalanceUpdate {
        Balance: PostBalance(maximum: Block_Slot)
        Currency {
          Symbol
          MintAddress
        }
      }
    }
  }
}

Variables

{
  "variables": {
    "walletAddress": "AJW88zd7j89Kdv3uMPoYghj65TYiJNAWA6npyMwQxqx",
    "afterTime": "2024-10-08T08:03:00Z"
  }
}

Similar queries