Skip to main content
Update the consume_user_resource_percent parameter of a smart contract. This method will use 30 Compute Units.

Parameters

  • owner_address - String - Required - The contract owner address, converted to a hex string
  • contract_address - String - Required - The address of the contract to be modified, in hex string format
  • consume_user_resource_percent - int32 - Requried - The consume user resource percentage. It should be an integer between [0, 100]. if 0, means it does not consume user resource until the developer resource has been used up
  • permission_id - int32 - Optional. The ID of the permission that is required to execute the transaction, for multi-signature use
  • visible - boolean - Optional. 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 UpdateSettingContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows: