TRON Virtual Machine vs Ethereum Virtual Machine
2 min readMay 15, 2025
The TRON Virtual Machine (TVM) exhibits fundamental compatibility with the Ethereum Virtual Machine (EVM), with notable distinctions in the following aspects:
- The TVM employs an Energy model instead of the Gas model.
energyPrice
is a network parameter (it can be changed by committee proposals), currently set at 210 SUN on Mainnet. Unlike the fluctuating Gas prices and the presence of abasefee
in the EVM, the TVM’sGASPRICE
andBASEFEE
opcodes both return theenergyPrice
. - The Energy consumption of the majority of TVM opcodes aligns with their EVM counterparts, with certain opcodes exhibiting lower Energy costs, such as
SLOAD
andCALL
. - The prefix for contract addresses generated via
CREATE2
in the TVM is different from the EVM. The TVM utilizes the0x41
prefix, determined by the formula (where ++ represents string concatenation):
keccak256(0x41++ address ++ salt ++ keccak256(init_code))[12:] - TRX can be transmitted to contracts through two mechanisms: standard transfers and
TriggerSmartContract
invocations carrying acallValue
. Standard transfers bypass the execution of the contract’sfallback
function.