简体   繁体   中英

Tron Network Contract Read-Only Method Fees

Does it cost anything to call a Smart Contract on Tron that returns data from the contract but does NOT change any data?

It depends on how you call it.

The eth_call JSON-RPC method is free.

The eth_sendTransaction method creates a transaction and consumes gas in the form of native currency (in case of the Tron network, that's TRX).

Some wallet apps only support the transaction mode and do not support calls. Some JSON-RPC wrapper libraries such as web3js allow you to chose between the call (using the library .call() method) and the transaction (using the library .send() method).

Note: Even though the methods are prepended eth_ , they are used on the Tron network as well.

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