Field | Type | Description |
---|---|---|
owner_address | string | Account address |
contract_address | string | Contract address |
consume_user_resource_percent | int64 | User Energy Proportion |
{
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"contract_address": "PFHUpUNpmPVTYziBWCMk7kopiTzx9mX56r",
"consume_user_resource_percent": 10,
"visible": true
}
curl --location --request POST '/wallet/updatesetting' \
--header 'Content-Type: application/json' \
--data-raw '{
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"contract_address": "PFHUpUNpmPVTYziBWCMk7kopiTzx9mX56r",
"consume_user_resource_percent": 10,
"visible": true
}'
{
"visible": true,
"txID": "53df0349667abf4d398cbaec1cdaa10fb3dff46433ac2600e90de06cd33cf9a0",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"consume_user_resource_percent": 10,
"owner_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"contract_address": "PFHUpUNpmPVTYziBWCMk7kopiTzx9mX56r"
},
"type_url": "type.googleapis.com/protocol.UpdateSettingContract"
},
"type": "UpdateSettingContract"
}
],
"ref_block_bytes": "47d2",
"ref_block_hash": "c44a580e90e39d10",
"expiration": 1737542763000,
"timestamp": 1737542704618
},
"raw_data_hex": "0a0247d22208c44a580e90e39d1040f883faecc8325a6a082112660a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e55706461746553657474696e67436f6e747261637412300a1541b3dcf27c251da9363f1a4888257c16676cf54edf12154142a1e39aefa49290f2b3f9ed688d7cecf86cd6e0180a70eabbf6ecc832"
}