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 can I get TRC20&TRC721 info by block num? #26

Closed
oushu1zhangxiangxuan1 opened this issue Jun 21, 2021 · 1 comment
Closed

How can I get TRC20&TRC721 info by block num? #26

oushu1zhangxiangxuan1 opened this issue Jun 21, 2021 · 1 comment

Comments

@oushu1zhangxiangxuan1
Copy link

No description provided.

@MrNaif2018
Copy link
Collaborator

MrNaif2018 commented Jan 31, 2023

Hi! Not sure what exactly do you mean, but if you want to i.e. monitor all blocks for smart contract events, all that info is available in block data. (provider.make_request("wallet/getblockbynum", {"num": block, "detail": True})
If contract["type"] == "TriggerSmartContract", then you can parse data from here
See example here:
https://github.com/bitcartcc/bitcart/blob/11e80ef0aec82a05ceaeca38649b184e46c354d8/daemons/trx.py#L93-L120
P.S. If you want to do payment processing you can just use BitcartCC directly (:

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