curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/updatesetting \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"consume_user_resource_percent": 10,
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/updatesetting \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"consume_user_resource_percent": 10,
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}owner_address — address of the contract owner who can update settingscontract_address — address of the smart contract to update settings forconsume_user_resource_percent — percentage (0–100) of caller’s resources to consumevisible — boolean indicating whether to use visible (Base58) address format instead of hexvisible — boolean indicating whether addresses are in visible formattxID — unique transaction ID for the setting update transactionraw_data — raw transaction data containing:
contract — array with contract update detailsref_block_bytes — reference block bytes for transaction validationref_block_hash — hash of the reference blockexpiration — transaction expiration timestamptimestamp — transaction creation timestampraw_data_hex — complete transaction data encoded in hexadecimal formatwallet/updatesetting method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/updatesetting' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"consume_user_resource_percent": 10,
"visible": true
}'
verify owner account exists
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getaccount' \
--header 'Content-Type: application/json' \
--data '{ "address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC", "visible": true }'
confirm contract owner
wallet/getcontract with a hex address to retrieve origin_address and ensure it matches owner_address (converted to hex if needed).curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getcontract' \
--header 'Content-Type: application/json' \
--data '{ "value": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c" }'
Account [41…] does not exist — the payer address is not activated or visible does not match the provided address format.No permission — the owner_address is not the contract owner (origin_address).Contract not found — verify the contract address and format.Address of the contract owner
Address of the smart contract
Percentage (0-100) of caller's resources to consume
0 <= x <= 100Whether to use visible (Base58) address format
Was this page helpful?