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 the energy limitcontract_address
— address of the smart contract to update energy limit fororigin_energy_limit
— maximum energy amount the contract creator provides (in sun units)visible
— 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 energy limit 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/updateenergylimit
method is used for:
- Setting energy subsidies for contract users to improve user experience.
- Managing contract execution costs by controlling energy allocation.
- Optimizing contract economics by adjusting energy provision strategies.
- Implementing freemium models where basic operations are subsidized.
- Balancing between contract owner costs and user accessibility.
- Adjusting energy limits based on contract usage patterns and feedback.
Only the contract owner can update the origin energy limit. Higher limits mean the contract owner covers more execution costs, making the contract cheaper for users to interact with. The energy limit is specified in sun units (1 TRX = 1,000,000 sun).
Body
application/json