blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
385 stars 101 forks source link

Get last few transactions #72

Closed Joeyboy92 closed 2 years ago

Joeyboy92 commented 2 years ago

I like this API however there is one feature I can't seem to find, to get the last say 10 transactions of a particular wallet using it's public address.

I want to be able to retrieve the last 10 transactions at a time and paginate through them all.

Each transaction must have at least the transaction amount, receiver and sender addresses ect.

Is there such a feature in this library and if so could you refer me to it?

If it's not a feature of this library how can I query the Blockchain to access this data?

yihau commented 2 years ago

Each transaction must have at least the transaction amount, receiver and sender addresses ect.

Solana has a totally different tx structure from other chains. you can take a look here https://solanacookbook.com/core-concepts/transactions.html#facts

If you would like to decode it, I recommend that read the structure first. a tldr version is that parse instructions to know the tx purpose.