UpdateEnergyLimit

Update the origin_energy_limit parameter of a smart contract

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
❗️

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.

Body Params
string

Transaction initiator address.(Format: Base58 or Hex).
Example: TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW

string

Contract address. (Format: Base58 or Hex).
Example: TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

int32

Maximum energy consumption allowed by the contract creator per transaction.
Example: 100000000

int32

Optional. Permission ID used for multi-signature. (Default: Owner Permission)

boolean
Defaults to true

Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json