Advanced

Advanced patterns and TRON-specific contract features: parameter encoding, contract-to-contract calls, upgradeable contracts, error handling, the Stake 2.0 Solidity SDK, event logs, and fee_limit management.

This section covers advanced patterns and TRON-specific contract features that build on top of the Concepts and Development lifecycle sections. Read these as you need them — they are reference material rather than a sequential tutorial.

In this section

When to read which

TaskStart with
Calling a contract via raw HTTP APIParameter encoding
Composing your contract with anotherContract-to-contract calls
Building an upgradeable systemUpgrading smart contracts
Diagnosing a REVERT or OUT_OF_TIMEVM exception handling
Optimizing deployment costFeeLimit & Energy cost
Staking / voting from a contractStake 2.0 Solidity SDK reference
Subscribing to on-chain eventsEvent log

Related resources