I was looking at fungible_token table inside my PostgreSQL database, and I noticed that all of my records have the same value for the holder field, and that value is the X500 name of my Wallet node; even though all my tokens are issued to accounts on that node (i.e. Wallet node is the host for all of my accounts).
Please note that I'm able to query account balances correctly inside my flows (I understand that it relies on querying the vault_states table and not fungible_token).
- Is it by design that the
fungible_tokentable is showing thehostof the accounts as theholderof the token? - If so, what would be the proper SQL query to find the balance of a certain account?
Just to be more clear, I'm looking for a SQL that I can write inside pgAdmin - not inside Corda flows.