@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Pure
Pure
may not read or write values on the blockchain. It may
only perform computations based on the input arguments.
Because of this Pure
methods do not require a transaction and consume zero gas.
A Pure
method may not also be marked as Payable
.
Note that in the context of a Pure
method the values in the msg variable are meaningless because this
is no actual transaction being made.