I created a new vault account. Under that vault account I created a new wallet.
Now I want to get the balance for that wallet.
When exploring the doc, I see the I can get the balance using the following API endpoint by providing the vault account id an the asset id parameters:
Get the asset balance for a vault account
But I see another API endpoint:
Get vault balance by asset
This endpoint is very similar to the previous one. Except that there is no vault account id parameter. Even their responses are identical.
Can you please describe the differences between these two endpoints?
I am really confused about the second endpoint, Because an asset is associated with a wallet. And a wallet is associated with a vault account. In the second endpoint, since there no vault account id, What balance is returned? and what is the purpose/use case of it?
Thanks in advance.