UpdateSetting

Update the consume_user_resource_percent parameter of a smart contract

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.

  • consume_user_resource_percent - Consume user's resource percentage. It should be an integer between [0, 100]. if 0, means it does not consume user's resource until the developer's resource has been used up

  • permission_id - Optional, for multi-signature use

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

Request

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

Response

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

Last updated