Update contract setting

Updates settings for an existing smart contract, such as energy limit or user resource percent.

Request

This endpoint expects an object.
owner_addressstringRequired
Base58 address of the contract owner.
contract_addressstringRequired
Base58 address of the contract to update.
setting_typeintegerRequired

Type of setting to update (e.g. 0 for energy limit, 1 for user resource percent).

valueintegerRequired
New value for the setting.
visiblebooleanOptional

Indicates if addresses are base58 (true) or hex (false).

Response

Unsigned transaction object for contract setting update.
visibleboolean or null
txIDstring or null
raw_dataobject or null
raw_data_hexstring or null