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

Look up owner account for snap shot #3

Open
TikiCat7 opened this issue Sep 22, 2021 · 6 comments
Open

Look up owner account for snap shot #3

TikiCat7 opened this issue Sep 22, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@TikiCat7
Copy link

For each token found, would it be possible to also find which owner account it currently sits in? That would make this tool even more useful as it can be used to create a full snapshot. I can try and make a PR for this if you could guide me in the right direction.

@TikiCat7 TikiCat7 reopened this Sep 22, 2021
@statikdev
Copy link
Owner

hey @TikiCat7 -

thanks for checking out the repo! this is on the list.

I'll write up how I think it should be done here and if you want to take a stab at it, that would be awesome!

@TikiCat7
Copy link
Author

sounds good, I was looking into a bit but a simple getAccountInfo call to the RPC should give us the owner address

@TikiCat7
Copy link
Author

do you have any idea how to do this? I just tested with getAccountInfo() using the tokenMetadata.mint address. The owner property on the response actually points to the SPL Program account so it's not helpful...

@TikiCat7
Copy link
Author

ok I figured out the owner property is inside the data (the buffer part), trying to figure out how to decode it

@emlcpfx
Copy link

emlcpfx commented Nov 8, 2021

Did you figure this out? This is exactly what I'm trying to do, but I'm not a programmer. Just a dummy with a computer.

@statikdev
Copy link
Owner

i have a working version of this i will upload in the next day or so. thanks for your patience!

@statikdev statikdev added the enhancement New feature or request label Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants