Skip to main content
Update the origin_energy_limit parameter of a smart contract. This method will use 30 Compute Units.

Origin Energy Limit

Starting with Java-Tron Odyssey 3.2 release, this parameter is required for deploying new contracts, and the value should be larger than 0. For contracts already deployed on the Mainnet prior to Odyssey 3.2, the value is stored as 0, but treated as maximum = 10,000,000.

Parameters

  • owner_address - String - The contract owner address, converted to a hex string
  • contract_address - String - The address of the contract to be modified, in hex string format
  • origin_energy_limit - int32 - Adjusted upper limit of energy provided by smart contract developers in one transaction
  • permission_id - int32 - The ID of the permission that is required to execute the transaction, for multi-signature use
  • visible - boolean - Specifies whether the address is in Base58 format (default: false)

Returns

Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is UpdateEnergyLimitContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows: