---
title: "Discussion on \"Global variables in solidity\" | Hashnode"
description: "Discussion on \"Global variables in solidity\". Like every other programming language, solidity also have built-in global variables which are really useful when you are building a smart contract.\n1. msg\n\nmsg.sender:-\nThis variable returns the address of the user or contract who is currently connec..."
url: "https://hashnode.com/posts/global-variables-in-solidity/6268150e3033e09ae73ec54a"
---

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

Discussion

# [Global variables in solidity](https://ghostman.hashnode.dev/global-variables-in-solidity?utm_source=hashnode&utm_medium=feed)

Like every other programming language, solidity also have built-in global variables which are really useful when you are building a smart contract. 1. msg msg.sender:- This variable returns the address of the user or contract who is currently connec...

Apr 26, 2022 · 2 min read · ghostman.hashnode.dev  
Read the article

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

## Written by

[Nikhil Dabhade](https://hashnode.com/@-Ghostman)

@\-Ghostman

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

I love Competitive Programming and Development.

Learning and Blogging about Solidity and Smart Contracts.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
