Ever wondered how to add blockchain or transaction information to your Smart Contract❓
🌐Use Global Variables
👇Here's how ( 🧵)
In Solidity, there are certain global variables that are used mainly to provide information about the blockchain or for general-purpose utility functions.
Let's review some of them👇
⚡️'msg' Global Variable:
-msg.data (bytes calldata): complete calldata
-msg.sender (address): sender of the message
-msg.sig (bytes4): first four bytes of the calldata
-msg.value (uint): number of wei sent with the message
Here are 10 concepts you need to MASTER if you want to become a Web3 developer.
🧵👇 Thread
1) WEB3:
Web 3.0 is the third generation of the Internet, based on blockchain technology, incorporating concepts such as decentralization and token-based economy and providing autonomy, privacy and security to users.
Users are in control of their own data and applications.
2) ETHEREUM:
Ethereum is an open source blockchain platform that enables developers to write Smart Contracts and deploying decentralized applications or dApps.