andelf / tronpy

TRON Python Client Library.
MIT License
204 stars 96 forks source link

Add events handling #66

Closed drforse closed 1 year ago

MrNaif2018 commented 1 year ago

Hi! Thank you for your pull request!

Those methods seem to belong to TronGrid API, not to the full node one. Does it make sense to add it? It's possible to just get_transaction and then decode the input data via ABI, using smth like

data = bytes.fromhex(value["data"])
function = contract.get_function_by_selector(data[:4])
MrNaif2018 commented 1 year ago

Hi, please re-base if you still want this PR merged and answer the comments (: Closing for now, feel free to re-open!