> For the complete documentation index, see [llms.txt](https://developers.aixchain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.aixchain.com/http-api/api-list/smart-contracts/updateenergylimit.md).

# UpdateEnergyLimit

Update the origin\_energy\_limit parameter of a smart contract

**BODY PARAMS**\
`{`

**`contract_address`**` ``string`

**`owner_address`**` ``string`

**`origin_energy_limit`**` ``int32`

**`visible`**` ``boolean (Optional)`

**`permission_id`**` ``int32 (Optional)`

`}`

**Note:**  &#x20;

* **owner address** is transaction creator address, in hex string format.
* **contract address** is the address of the contract to be modified, in hex string format.
* **origin\_energy\_limit** is the maximum energy the creator sets. The greatest amount of energy the creator consumes during contract execution or creation process.
* **permission\_id** for multi-signature
* **visible:** whehter the address is in base58check format.

**Example:**

curl --request POST\
\--url <http://172.104.51.182:16667/wallet/updateenergylimit>\
\--header 'Accept: application/json'\
\--header 'Content-Type: application/json'\
\--data ' { "owner\_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "contract\_address": "AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd", "origin\_energy\_limit": 10, "visible": true }

**Input:**&#x20;

`{`&#x20;

`"owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz",`&#x20;

`"contract_address": "AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd", "origin_energy_limit": 10,`&#x20;

`"visible": true`&#x20;

`}`

**Response**:

`{`&#x20;

`"visible": true, "txID": "d07fd1960ec1075057edb2edf8c1202a34fc172cb66bda4c037403bc59f48c7f", "raw_data": { "contract": [ { "parameter": { "value": { "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "origin_energy_limit": 10, "contract_address": "AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd" }, "type_url": "type.googleapis.com/protocol.UpdateEnergyLimitContract" }, "type": "UpdateEnergyLimitContract" } ], "ref_block_bytes": "c78b", "ref_block_hash": "89c8c97679ca63ec", "expiration": 1640047758000, "timestamp": 1640047699040 }, "raw_data_hex": "0a02c78b220889c8c97679ca63ec40b095dbd3dd2f5a6e082d126a0a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e557064617465456e657267794c696d6974436f6e747261637412300a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb0121541d0f723a417a54e5629d865e05db8a45b79f0a9c3180a70e0c8d7d3dd2f"`&#x20;

`}`

\==> Continue you call **gettransactionsign** API then call **broadcasttransaction** API

We will the final result: The transaction created success on AIXChain network.

{"result":true,"txid":"d07fd1960ec1075057edb2edf8c1202a34fc172cb66bda4c037403bc59f48c7f"}<br>
