简体   繁体   中英

On tron network "contract.callStatic" is possible?

Like in eth network or other alternatives for the test of contract methods?

answer is found https://github.com/tronprotocol/java-tron/issues/4624#issuecomment-1235244422

TRON api: wallet/triggerconstantcontract is the same as callstatic of eth, we can use it to invoke the readonly method for querying contract data, and can also use it to invoke the non-readonly method of a contract to check the returned result and estimate the energy consumption of this transaction by energy_limit filed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM