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

How to get SOL transfers from a response getTransaction() #148

Open
shinhagunn opened this issue Oct 24, 2023 · 2 comments
Open

How to get SOL transfers from a response getTransaction() #148

shinhagunn opened this issue Oct 24, 2023 · 2 comments

Comments

@shinhagunn
Copy link

shinhagunn commented Oct 24, 2023

Hi I've a signature of Solana but I dunno how to extract to get all transfers from this signature
My signature I want to read is: 5ma1GRnMsqGSJaNc1LuLaZyuG95gNeKCAHMVyGECFmbwan7vsdzMgpw6SRvchWa3J6upSjxzTSuYVMy5jZpatm7F

image

Thanks for Help

@yihau
Copy link
Collaborator

yihau commented Oct 25, 2023

if you only care about balance changes, there are four fields, pre/post balance and pre/post tokenBalance. you can use them to get the effect of this transaction.
if you would like to know more informations, you will need to parse instructions. there are two different instructions when you get a transaction: instruction and inner-instruction.

@pengbotter
Copy link

如果您只关心余额变化,则有四个字段,前/后余额和前/后 tokenBalance。您可以使用它们来获得此交易的效果。 如果您想了解更多信息,则需要解析说明。当你收到一笔交易时,有两种不同的指令:指令和内部指令。

if you only care about balance changes, there are four fields, pre/post balance and pre/post tokenBalance. you can use them to get the effect of this transaction. if you would like to know more informations, you will need to parse instructions. there are two different instructions when you get a transaction: instruction and inner-instruction.

Now if I want the sender, receiver and balance of USDT, how do I get it?

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

3 participants