Загрузка...

💰 Ether, Gwei & Wei in Solidity Explained | Ether Units & Balance Reading | Solidity in Hindi

📌 Welcome back to the Solidity Smart Contract Course by CodeByAnkita!

In this episode, we explore Ether Units in Solidity — wei, gwei, and ether — and learn how Ethereum measures and handles balances internally. You'll understand how to read the balance of a smart contract in different denominations and why this knowledge is crucial for real-world development.

🔍 What You’ll Learn in This Video:
✅ What are the units in Ethereum: wei, gwei, and ether
✅ How these units relate to each other with actual value comparisons
✅ How to read contract balance in wei, gwei, and ether
✅ Difference between 1 ether, 1e18, and 1 gwei
✅ Using receive() to allow ETH transfers into a smart contract
✅ Best practices for displaying contract balance in user-readable form
✅ Real-time example using Remix IDE (no MetaMask needed)

📁 Smart Contracts Covered:
EtherUnits — Shows unit conversions (wei, gwei, ether) and validates them

UnitsOfEth — Demonstrates how to get and format contract balance

UnitsOfEth2 — Adds a receive() function to accept ETH into the contract

💻 Source Code:
📂 View full code in this GitHub repo:
👉 https://github.com/codebyankita/solidity-smart-contract-course

📺 This Series Covers (In Hindi):
🧠 Solidity Basics to Advanced Topics
🧱 Data Types, Variables, Functions
🔄 Mappings, Arrays, Structs
🔐 Access Modifiers, Visibility
⛽ Gas Optimization, Ether Units
🧪 Remix IDE, Deployment, Testnet

🔔 Subscribe for Full Solidity Course in Hindi:
👉 @codebyankita

📅 New videos every week with code walkthroughs and concepts explained in Hindi for beginners and developers transitioning from Web2 to Web3.

Видео 💰 Ether, Gwei & Wei in Solidity Explained | Ether Units & Balance Reading | Solidity in Hindi канала CodeByAnkita
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять