Create an unsigned transaction to update the Origin Entropy Limit of the smart contract.
Usage
visionWeb.transactionBuilder.updateEntropyLimit(
contractAddress,
consumeUserResourcePercent,
ownerAddress,
options
);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
contractAddress | Smart Contract address. | string | - |
originEntropyLimit | The maximum resource consumption of the creator in one execution or creation. | number | - |
ownerAddress | Smart contract creator's address. | string | Default account address |
options | Descriptions are below. | object | - |
options parameters
Parameter | Description | Type | Default |
---|---|---|---|
permissionId | Permission id for multi-signature use. | number | - |
Returns
Object.
Example
visionWeb.transactionBuilder.updateEntropyLimit("46f151d2b560d0f0a983cdbfc85fff392bb8874258",300);
> {
visible: false,
txID: '99fe8826ca0b80c9fc4029f98f43945cfbaf6845050edd104fcb3de69bc11311',
raw_data: {
contract: [ [Object] ],
ref_block_bytes: 'e559',
ref_block_hash: '157964dbeb65d924',
expiration: 1608477267000,
timestamp: 1608477209681
},
raw_data_hex: '0a02e5592208157964dbeb65d92440b8a8dd85e82e5a76080f12700a30747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5570646174654173736574436f6e7472616374123c0a1541401a8da8a7fc86f0087f8c62e630d10df10a963b12037432741a1868747470733a2f2f76726f6e2e626b626f732e737061636520c0843d2864280170d1e8d985e82e'
}