post https://api.shasta.trongrid.io/wallet/updateenergylimit
Update the origin_energy_limit parameter of a smart contract
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.
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:
Field | Type | Description |
---|---|---|
owner_address | string | Account address |
contract_address | int | Contract address |
origin_energy_limit | string | Adjusted upper limit of energy provided by smart contract deployers in one transaction |