> For the complete documentation index, see [llms.txt](https://docs.frequencychain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frequencychain.org/7.-smart-contract-example-wallet-authorization-understanding-msg.-sender-and-permissions.md).

# 7. Smart Contract Example : Wallet Authorization (Understanding msg. sender and Permissions

In real-world applications, not all users should be allowed to execute all functions. This example demonstrates how a contract can restrict access based on the caller’s wallet address.

<p align="center">Smart contract written in Remix</p>

<figure><img src="https://1067227230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLwgYv3BMBEDsxgxyrgOJ%2Fuploads%2FaDroeqKtyRYnZAWHLHaZ%2Fsec%207.1.png?alt=media&amp;token=90dcc8d0-d14b-4563-af87-db20dfe03f55" alt=""><figcaption></figcaption></figure>
