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 query state of past block? #6074

Open
bbaktaeho opened this issue Nov 12, 2024 · 4 comments
Open

How to query state of past block? #6074

bbaktaeho opened this issue Nov 12, 2024 · 4 comments

Comments

@bbaktaeho
Copy link

Can’t I get the state of past blocks on Tron?
For example, I want to check the TRC-20 balance owned by account in 10000 block.

See docs,

QUANTITY|TAG - currently, only "latest" is available. 

Isn't there a solution not only for JSONRPC but also for other APIs?

@laurenceja
Copy link

@bbaktaeho As I know, now it does not support to query a TRC20 token balance on a past block directly. Alternatively, we can get the events about accounts, and save the balance changes to realize this function indirectly.

@bbaktaeho
Copy link
Author

@laurenceja Thanks.
I want query the historical balance of TRC-20. But, currently not possible in the tron ​​java client.

@DongDongSunny
Copy link

you could see all the transactions related to your own easily use transcan, like this link, choose the Type to "Trigger Smart Contract" and choose the change balance method like "Transfer" or your customised method

@S1ep
Copy link

S1ep commented Nov 13, 2024

@bbaktaeho As I know, now it does not support to query a TRC20 token balance on a past block directly. Alternatively, we can get the events about accounts, and save the balance changes to realize this function indirectly.

@laurenceja Do you know any tron data statistical provider provide the function?

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

No branches or pull requests

4 participants