Skip to main content



A constant is a globally declared value that cannot be modified by entrypoints. The constant keyword is used to declare a constant, followed by the identifier, a type and a value.

It is inlined at compilation time, hence it is not an element of the contract's storage.

For example:

constant nb_iterations : nat = 20