tron-api-python
tron-api-python copied to clipboard
reading data of a smart contract
trafficstars
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.