Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update define-read-only.mdx #845

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/docs/stacks/clarity/functions/define-read-only.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: define-read-only
description: Defining public read-only functions in Clarity smart contracts.
description: Define public read-only functions in Clarity smart contracts.
---

## Function Signature
Expand Down Expand Up @@ -71,4 +71,4 @@ This example demonstrates:

## Conclusion

The `define-read-only` function is an essential tool for creating efficient and safe query interfaces in Clarity smart contracts. By providing a way to expose contract data and perform calculations without modifying state, read-only functions enable developers to create more transparent and gas-efficient contracts. When used effectively, they can significantly enhance the usability and accessibility of smart contract data for both on-chain and off-chain applications.
The `define-read-only` function is an essential tool for creating efficient and safe query interfaces in Clarity smart contracts. By providing a way to expose contract data and perform calculations without modifying state, read-only functions enable you to create more transparent and gas-efficient contracts. When used effectively, this function can significantly enhance the usability and accessibility of smart contract data for both on-chain and off-chain applications.
Loading