iexbase / tron-api-python

A Python API for interacting with Tron (TRX)
https://tronapi-for-python.readthedocs.io
MIT License
165 stars 82 forks source link

reading data of a smart contract #79

Open Mahsa-Bastankhah opened 3 years ago

Mahsa-Bastankhah commented 3 years ago

Hi. I want to read the balance of an account from a TRC20 smart contract. I know how to send a "write" transaction using tron.transaction_builder.trigger_smart_contract and tron.trx.sign_and_broadcast(txn['transaction']) but I don't know how to read data from blockchain. I appreciate any help.