Streaming v2 Balance of Address

NoFace
Wed, 27 Sep 2023 17:41:54 +0000
GraphQL API

I’m unable to get the balance of an address in streaming mode, it only gives me the changes to the balance, not the total, the same in query mode gives me the total…

 {
                              EVM(dataset: combined, network: eth) {
                                  BalanceUpdates(
                                  where: {BalanceUpdate: {Address: {is: "${pairAddress}"}}}
                                  orderBy: {descendingByField: "balance"}
                                  ) {
                                  Currency {
                                      Name
                                  }
                                  balance: sum(of: BalanceUpdate_Amount)
                                  BalanceUpdate {
                                      Address
                                  }
                                  }
                              }
                          }

2 posts - 2 participants