origin_energy_limit
parameter of a smart contract.Field | Type | Description |
---|---|---|
owner_address | string | Account address |
contract_address | int | Contract address |
origin_energy_limit | string | Adjusted upper limit of energy provided by smart contract deployers in one transaction |
{
"owner_address": "PFHUpUNpmPVTYziBWCMk7kopiTzx9mX56r",
"contract_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"origin_energy_limit": 100000000,
"visible": true
}
curl --location --request POST '/wallet/updateenergylimit' \
--header 'Content-Type: application/json' \
--data-raw '{
"owner_address": "PFHUpUNpmPVTYziBWCMk7kopiTzx9mX56r",
"contract_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp",
"origin_energy_limit": 100000000,
"visible": true
}'
{
"visible": true,
"txID": "4fe870b5f560571bda038a37c5657aebd0594ee8faaeec50d952bb822e9ce7b1",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "PFHUpUNpmPVTYziBWCMk7kopiTzx9mX56r",
"origin_energy_limit": 100000000,
"contract_address": "PHqgRM8giN6Nr9DgA1FybUjKFwd79cxhyp"
},
"type_url": "type.googleapis.com/protocol.UpdateEnergyLimitContract"
},
"type": "UpdateEnergyLimitContract"
}
],
"ref_block_bytes": "4819",
"ref_block_hash": "6ea5795ab952dd86",
"expiration": 1737542982000,
"timestamp": 1737542924907
},
"raw_data_hex": "0a02481922086ea5795ab952dd8640f0b287edc8325a71082d126d0a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e557064617465456e657267794c696d6974436f6e747261637412330a1541b3dcf27c251da9363f1a4888257c16676cf54edf12154142a1e39aefa49290f2b3f9ed688d7cecf86cd6e01880c2d72f70ebf483edc832"
}