Skip to main content

/wallet/updatesetting REST API Endpoint

Update the consume_user_resource_percent parameter of a smart contract.

Updated on
Oct 4, 2023

/wallet/updatesetting REST API Endpoint

Body Parameters

owner_address
string
REQUIRED
The transaction creator address in hex format
contract_address
string
REQUIRED
The address of the contract to be modified, in hex string format
consume_user_resource_percent
integer
REQUIRED
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
integer
The ID of the permission that is required to execute the transaction
visible
boolean
A boolean value indicating whether the address is in base58 format

Returns

visible
A boolean value indicating whether the transaction was successful
txid
The transaction id
raw_data
An object that contains the transaction details with the following fields:
contract
An array of objects containing information about the delegate resource contract
parameter
An object containing the delegate resource contract parameters
value
An object containing the values of the delegate resource contract parameters
consume_user_resource_percent
The Adjusted upper limit of energy provided by smart contract deployers in one transaction
owner_address
The owner address
contract_address
The contract address
type_url
The URL of the freeze balance contract type
type
The type of the freeze balance contract
ref_block_bytes
The ref block bytes of the transaction
ref_block_hash
The ref block hash of the transaction
expiration
This is a timestamp indicating the expiration time of the transaction in milliseconds
timestamp
This is a timestamp indicating the time at which the transaction was created in milliseconds
raw_data_hex
The hexadecimal representation of the raw data in the transactio
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updatesetting \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"owner_address": "TSNEe5Tf4rnc9zPMNXfaTF5fZfHDDH8oyW",
7
"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",
8
"consume_user_resource_percent": 10,
9
"visible": true
10
}
11
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free