⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins

Method: POST /wallet/updateenergylimit

dropdown

# /wallet/updateenergylimit example for Tron (TRX)

POST /wallet/updateenergylimit

Method not allowed

Update the origin_energy_limit parameter of a smart contract

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

Transaction creator address, in hex string format.

contract_address - string

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

origin_energy_limit - int32

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

permission_id - int32

Optional. Whehter the address is in base58 format.

visible - boolean

Optional. Whehter the address is in base58 format.

Request

curl --location --request POST 'https://trx.getblock.io/wallet/updateenergylimit' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}