Solidity TutorialsMarch 12, 202527:57• 35 views

Global Variables in Solidity Part 3: Block, Tx, and Msg Properties

Original Channel Title (FA):

بررسی کامل متغیرهای گلوبال-3 Global Variables in solidity

Lesson Notes & Description

Global Variables in Solidity Part 3: In-depth exploration of Block, Transaction, and Message properties. Understand the execution context provided by the Ethereum Virtual Machine (EVM). Learn how global variables supply vital metadata during smart contract execution. ### Variables Covered: - msg.sender, msg.value, and msg.data properties. - block.timestamp, block.number, block.prevrandao, and block.chainid. - Security analysis: Why tx.origin must never be used for authorization (phishing vectors). - Live demonstrations inspecting variable outputs on-chain. --- ### 🔗 Official Resources & Community: - 🌐 Official Website: https://cryptocoder.team/en/ - 📢 Telegram Channel: https://t.me/CryptoCoders_tel - 📺 YouTube Channel: https://www.youtube.com/@Crypto_Coders - 📂 GitHub Source Code: https://github.com/CryptoCodersGit/Gl #CryptoCoders #Blockchain #Web3 #SolidityTutorials
View Original Persian Description (FA)
در این آموزش به بخش سوم متغیرها میرسیم و در ان به بررسی کامل متغیرهای بسیار مهم و پشرفته زبان سالیدیتی میپردازیم GlobalVariables in solidity تمام موارد را به ترتیب اهمیت بررسی میکنیم توضیح میدهیم و در اخر برای تست انها توابعی را مینویسیم از موارد مهمی که بررسی قرار خواهیم داد: msg.sender - msg.value - msg.sig block.gaslimit - block.timestamp - block.gaslimit tx.gasprice - tx.origin و موارد دیگر... همچنین در این اموزش به طور کامل تفاوت بین msg.sender و tx.origin را بررسی کرده و مثال میزنیم. بخش بندی: 00:00 مقدمات 00:30 - شروع اشنایی با GlobalVariables 01:21 - msg.sender/msg.value/block.timestamp 09:30 - msg.data/block.number/tx.origin 12:22 - بررسی تفاوت بین msg.Sender Vs tx.Origin 19:02 - بررسی کامل تمام متغیرهای گلوبال در سالیدیتی 24:20 - تست خروجی AllGlobalVariables 27:25 - پایان بندی... کد مهم این آموزش را میتوانید از گیتهاب کریپتوکدرز استفاده کنید: https://github.com/CryptoCodersGit/Gl...

Video Chapters(8 parts)

0:00Introduction & Overview
Play at 0:00
0:30Introduction to Global Variables in Solidity
Play at 0:30
1:21Deep Dive: msg.sender, msg.value, and block.timestamp
Play at 1:21
9:30Deep Dive: msg.data, block.number, and tx.origin
Play at 9:30
12:22Security Analysis: msg.sender vs tx.origin (Phishing Attacks)
Play at 12:22
19:02Comprehensive Review of All Solidity Global Variables
Play at 19:02
24:20Testing and Inspecting Global Variables Output
Play at 24:20
27:25Conclusion & Next Steps
Play at 27:25

Referenced Resources & Documentation

Topics Covered:#CryptoCoders#Blockchain#Web3#SolidityTutorials
START A CONVERSATION

Have a Web3 Project in Mind?

Let's discuss your requirements. We can help you evaluate technical feasibility, plan architecture, and build the solution.

Zero MiddlemenMulti-Chain AgnosticSecurity-First