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 do I get my trx20 balance and all transactions for an account #75

Closed
MaGua-Bishop opened this issue Feb 8, 2023 · 2 comments
Closed

Comments

@MaGua-Bishop
Copy link

I want to know, how can I get the balance of trx20 tokens of an address and get the list of transactions of a certain address, which bothered me for 2 months, I'm sorry I didn't find them from the source code and documentation

@MrNaif2018
Copy link
Collaborator

Hi! You can use
the balanceOf and decimals contract functions to get balance of an account in any contract
As for the transactions, I think you need an indexer or to track transactions in live mode, they are not provided by full node directly. But if you have a block range you can scan it for transactions to your address

@MrNaif2018
Copy link
Collaborator

If you have any further questions, feel free to re-open the issue

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

2 participants