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
how to know it is "Token Program: Sync Native" #153
Comments
how to get the
|
that
is base64 (base58?) encoded by array. If you go read the source code of the token program, you will see that That means that the parameters to the token program is just the number of the instruction to call, and no other params. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use
I print the txn:
where why I decode the instructions[1].
I got an error, because I decode the "J" with:
But the program is "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA".
So my question is how to find the instructions[1] as "Token Program: Sync Native"
https://explorer.solana.com/tx/3wMPKe86EK4zZEuD6GycPoi3CvWrPBvvwzdLcrLv6JW2FNSq89Re1jhPbSvnw9H54aAMkkeU5F72k21mgAjYwqgB
The text was updated successfully, but these errors were encountered: