What endpoints to use if building a ledger to track all balance changes per vault?

Hi, I need to build a ledger where each balance change to all vaults gets tracked so we could query the balance at a point in time.

I’ve utilized the getTransactions() SDK function in ts-sdk (ts-sdk/docs/apis/TransactionsApi.md at master · fireblocks/ts-sdk · GitHub), but not all of the computed vault balances are matching against the balance shown in the console.

Are there other endpoints that I need to use in order to take into account all other events that can cause a change in a vault’s balance?

Hi @nicolaisingh-maya ,

Thanks for reaching out to us.

Here you go with the API EP to get vault asset balances: /v1/vault/asset_wallets, which allows fast traversal of all account balances.

Hi @Rajalakshmi ,

If we need to get historical balances, for instance the balances of all our vaults a year ago.

How do we query this?