In the same way as contracts and predicates , Scripts also support configurable constants. This feature enables dynamic adjustment of certain values within your scripts.
Configurable constants are fairly straightforward to add and set in your scripts.
In this script, AMOUNT is a configurable constant with a default value of 10. The main function returns the sum of the inputted_amount and the configurable constant AMOUNT.
To change the value of the AMOUNT constant, we can use the setConfigurableConstants method as shown in the following example: