tron-api-python icon indicating copy to clipboard operation
tron-api-python copied to clipboard

reading data of a smart contract

Open Mahsa-Bastankhah opened this issue 5 years ago • 0 comments
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.

Mahsa-Bastankhah avatar Sep 27 '20 20:09 Mahsa-Bastankhah