andelf / tronpy

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

Estimated energy #91

Closed arehovski closed 1 year ago

arehovski commented 1 year ago

In the updated tron blockchain now there is an API method, that returns an estimated energy of calling a smart contract. https://developers.tron.network/reference/estimateenergy It would be nice to include it into your client library.

arehovski commented 1 year ago

I've created a PR with neccesary changes. https://github.com/andelf/tronpy/pull/92

MrNaif2018 commented 1 year ago

Merged, thank you! Though triggerconstantconstant was there for a while and is pretty useful still