UpdateEnergyLimit

Update the origin_energy_limit parameter of a smart contract.

This method will use 30 Compute Units.


Origin Energy Limit

Parameters

  • owner_address - String - The contract owner address, converted to a hex string

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

  • origin_energy_limit - int32 - Adjusted upper limit of energy provided by smart contract developers in one transaction

  • permission_id - int32 - The ID of the permission that is required to execute the transaction, for multi-signature use

  • visible - boolean - Specifies whether the address is in Base58 format (default: false)

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 deplovers in one transaction.

Last updated

Was this helpful?