update_energy_limit
Updates a smart contract’s origin energy limit to cap the energy its creator pays per execution; requires the creator’s wallet and a positive energy value.
Instructions
Update a contract's originEnergyLimit (max energy the contract creator will pay per execution). Requires the contract creator's wallet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>",
"originEnergyLimit": "<originEnergyLimit>"
},
"name": "update_energy_limit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network name. Defaults to mainnet. | |
| contractAddress | Yes | The contract address | |
| originEnergyLimit | Yes | New originEnergyLimit value (energy units, must be > 0) |