Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
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 hex
Response
visible— 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 timestamp
raw_data_hex— complete transaction data encoded in hexadecimal format
Use case
Thewallet/updatesetting method is used for:
- Adjusting resource consumption patterns for smart contract execution.
 - Optimizing contract costs by controlling user vs contract owner resource usage.
 - Managing energy and bandwidth allocation between contract and users.
 - Implementing different pricing models for contract interactions.
 - Fine-tuning contract economics and user experience trade-offs.
 - Setting up contracts to be more or less resource-friendly to callers.
 
Only the contract owner can update the consume user resource percentage. Setting this to 100 means all resources come from the caller, while 0 means all resources come from the contract owner. The default is typically 100.
curl example
Shell
1
verify owner account exists
Shell
2
confirm contract owner
Use 
wallet/getcontract with a hex address to retrieve origin_address and ensure it matches owner_address (converted to hex if needed).Shell
common validation errors:
Account [41…] does not exist— the payer address is not activated orvisibledoes not match the provided address format.No permission— theowner_addressis not the contract owner (origin_address).Contract not found— verify the contract address and format.
Body
application/json
Address of the contract owner
Address of the smart contract
Percentage (0-100) of caller's resources to consume
Required range: 
0 <= x <= 100Whether to use visible (Base58) address format