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.

Body params:

  • owner_address - Transaction creator address, in hex string format.

  • contract_address - The address of the contract to be modified, in hex string format.

  • origin_energy_limit - The maximum energy the creator sets. The greatest amount of energy the creator consumes during contract execution or creation process.

  • permission_id - Optional, for multi-signature use

  • visible - Optional.Whehter the address is in base58 format.


curl --request POST \
     --url https://tron.api.watchdata.io/wallet/updateenergylimit \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
     "owner_address": "41608F8DA72479EDC7DD921E4C30BB7E7CDDBE722E",
     "contract_address": "41a7837ce56da0cbb28f30bcd5bff01d4fe7e4c6e3",
     "origin_energy_limit": 0,
     "permission_id": 0,
     "visible": true


  "Error": "class java.lang.IllegalArgumentException : Illegal character 0 at 3"

Last updated