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

Getting all transactions for a given address for the Tron Blockchain #6226

Closed
abbaahmad opened this issue Mar 4, 2025 · 3 comments
Closed

Comments

@abbaahmad
Copy link

Hi. We got the above question from a customer. I've gone through the config but I'm not sure if transHistory.switch = "on" or balance.history.lookup = false are the configs we need or if the node even provides this functionality. Please advice

@laurenceja
Copy link

@abbaahmad "balance.history.lookup" is used to configure if the node supports to query the history TRX balance of an account in a certain block. It is not used for querying all transactions of an account.

If you want to get all transactions of a given address, you can parse blocks to get all transactions of related account, please refer to this guide: https://developers.tron.network/docs/exchangewallet-integrate-with-the-tron-network#parse-blocks-to-get-transaction-records , or you can use trongrid api : https://developers.tron.network/docs/exchangewallet-integrate-with-the-tron-network#get-transaction-history

@Sunny6889
Copy link

Sunny6889 commented Mar 5, 2025

@abbaahmad If your customer just want to query the transaction history, they can simply use TranScan. Just search with the account public address, for example https://tronscan.org/#/address/TT2T17KZhoDu47i2E4FWxfG79zdkEWkU9N

@S1ep
Copy link

S1ep commented Mar 5, 2025

@abbaahmad "balance.history.lookup" is used to configure if the node supports to query the history TRX balance of an account in a certain block. It is not used for querying all transactions of an account.

If you want to get all transactions of a given address, you can parse blocks to get all transactions of related account, please refer to this guide: https://developers.tron.network/docs/exchangewallet-integrate-with-the-tron-network#parse-blocks-to-get-transaction-records , or you can use trongrid api : https://developers.tron.network/docs/exchangewallet-integrate-with-the-tron-network#get-transaction-history

@laurenceja The first solution seems complex, and the second solution does not cover all transactions. Does the community have plans to provide an interface that can retrieve all historical transactions?

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