UpdateSetting
POST
Update the consume_user_resource_percent parameter of a smart contract
Path Parameters
chainstringrequired
Parameter specifying the target chain to query.networkstringrequired
Parameter specifying the network of the target chain.Request Body
owner_addressstringrequired
Transaction initiator address. (Format: Base58 or Hex)contract_addressstringrequired
Contract address. (Format: Base58 or Hex).Example: TG3XXyExBkPp9nzdajDZsozEu4BkaSJozsconsume_user_resource_percentintegerrequired
Percentage of Energy paid by the contract caller (vs. the deployer). Range: 0–100. Default: 0 (deployer pays all). Example: 10 (caller pays 10%, deployer pays 90%).Permission_idinteger
Optional. Permission ID used for multi-signature account operations. Defaults to the owner permission (0) if unspecified.visibleboolean
Optional. Set to true to format addresses in Base58; set to false for hex format. (Default: false)Responses
owner_addressstring
Transaction initiator address. (Format: Base58 or Hex)contract_addressstring
Contract address. (Format: Base58 or Hex)consume_user_resource_percentint64
Percentage of user Energy consumption for a smart contract. (Range: [0-100])codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "ERROR_CODE","message": "400"}
cURL
curl -X POST 'https://tron-mainnet.nodit.io/wallet/updatesetting' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs"}'