HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

UpdateEnergyLimit

Update the smart contract's origin_energy_limit parameter.

❗️

Origin Energy Limit

Starting with the Java-Tron Odyssey 3.2 release, this parameter is mandatory for deploying new contracts, and the value must be greater than 0. For contracts already deployed on the Mainnet before Odyssey 3.2, the value is stored as 0 but is functionally treated as the maximum allowed value, which is 10,000,000.

Returns

Returned Object: Transaction (Unsigned).

General Fields: Refer to the Transaction section.

UpdateEnergyLimitContract Specific Fields: The raw_data.contract[0].parameter.value within the transaction contains parameters for the contract invocation:

FieldTypeDescription
owner_addressstringTransaction initiator address.(Format: Base58 or Hex)
contract_addressstringContract address. (Format: Base58 or Hex)
origin_energy_limitintAdjusted maximum energy provided by the contract deployer per transaction.

Language
Click Try It! to start a request and see the response here!