LOGBOOK

HELP

Quiz Entry - updated: 2026.07.30

What do the view and pure keywords mean in Solidity?

view marks a function that only reads state and cannot modify it; pure marks one that neither reads nor writes state.

Both are free to call directly because reading the chain costs no gas (blue buttons in Remix, no transaction). The subtlety: if a state-changing function calls a view/pure function internally, that read now happens inside a paid transaction.

From Quiz: IOTHACK / IOTHACK Glossary | Updated: Jul 30, 2026