---
title: "Discussion on \"Solidity: View and Pure Functions\" | Hashnode"
description: "Discussion on \"Solidity: View and Pure Functions\". Getter functions can be declared view or pure.\nView function declares that no state will be changed.\nPure function declares that no state variable will be changed or read.\n// SPDX-License-Identifier: MIT\npragma solidity ^0.7.3;\n\ncontract ViewAndPure ..."
url: "https://hashnode.com/posts/solidity-view-and-pure-functions/63c03df1cba029689b050860"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Solidity: View and Pure Functions](https://blog.michaeltech.xyz/solidity-view-and-pure-functions?utm_source=hashnode&utm_medium=feed)

Getter functions can be declared view or pure. View function declares that no state will be changed. Pure function declares that no state variable will be changed or read. // SPDX-License-Identifier: MIT pragma solidity ^0.7.3; contract ViewAndPure ...

Jan 12, 2023 · 1 min read · blog.michaeltech.xyz  
Updated Jan 15, 2023  
Read the article

-   [#software-development](https://hashnode.com/tag/software-development)
-   [#solidity](https://hashnode.com/tag/solidity)
-   [#web3](https://hashnode.com/tag/web3)

## Written by

[Michael Etokakpan](https://hashnode.com/@micahele)

@micahele

  
[View profile](https://hashnode.com/@micahele)

Software Developer

Full Stack Developer and Cloud Engineer with 4+ years of hands-on experience designing, developing, and implementing applications and solutions using a range of technologies, platforms, and programming languages.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
