Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store amount and owner (not program) of token account #61

Open
muhitrhn opened this issue Jul 22, 2023 · 2 comments
Open

Store amount and owner (not program) of token account #61

muhitrhn opened this issue Jul 22, 2023 · 2 comments

Comments

@muhitrhn
Copy link

Is it possible to store amount and owner of token account in spl_token_owner_index table and update it same way the items of account table is kept up to date? @lijunwangs

@lijunwangs
Copy link
Contributor

It is possible. But since we already have the information, you can just join the two tables: spl_token_owner_index and account table.

@muhitrhn
Copy link
Author

Hmm could do that but the amount of tokens in the token account is not exposed in a column. Will it take too much space in database if all the accounts are stored with their deserialized data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants