TRX
POST
GET
Last updated on January 1, 1970
1 min read
Method /wallet/updatesetting undefined ()
connect with REST protocol
/wallet/updatesetting
Method not allowed
Update the consume_user_resource_percent parameter of a smart contract
Parameters
owner_address
- string, required
Transaction creator address, in hex string format.
contract_address
- string, required
The address of the contract to be modified, in hex string format.
consume_user_resource_percent
- int32, required
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
- int32
Optional. Whehter the address is in base58 format.
visible
- boolean
Optional. Whehter the address is in base58 format.
Request
curl --location --request POST 'https://trx.getblock.io/wallet/updatesetting' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Response
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }