DEV Community

Cover image for 🔥 Ethereum Basics: From Wallets to Smart Contracts
Allan Githaiga
Allan Githaiga

Posted on

🔥 Ethereum Basics: From Wallets to Smart Contracts

🚪 Opening the Door: Wallets & Addresses

A wallet isn’t just where you “keep your crypto”—it’s your digital identity on Ethereum.

  • Public Address = like your email (where people send you ETH)

  • Private Key = your super-secret password to approve transactions

“With great private keys comes great responsibility.”

Keep your private key off screenshots, sticky notes, or the back of your hand. Seriously.

📨 Sending ETH: How Transactions Work

Think of a transaction like mailing a check:

  • You write the address + amount

  • You sign it with your private key

  • You pay a gas fee (like postage)

  • Ethereum confirms and records it forever

Once it's in, it’s in. Ethereum doesn’t do “undo.”

Diving Into Smart Contracts

A smart contract is like a vending machine that runs on code:

  • You send ETH → The machine checks the rules → It delivers the snack (or doesn’t)

These contracts automate everything from NFTs to DeFi lending to on-chain games—no humans in between.

⚙️ The Tools You Need

Your Ethereum toolbox 🧰:

  • MetaMask – Your wallet and dApp gateway

  • Remix IDE – Try writing your first contract in the browser

  • Truffle / Hardhat – Full toolkits for bigger dApps

These help you write, test, and deploy Solidity code like a pro.

🎉 So You Met a Fox… and Accidentally Discovered the World Computer

Metamask

“At first, it looked like just another crypto wallet... until I realized I had downloaded a portal to a decentralized world computer.”

♦ Ethereum Is More Than a Coin — It’s a World Computer

Ethereum runs on something called the Ethereum Virtual Machine (EVM) — a fancy way of saying:

"Everyone runs the same code, and everyone agrees on the result."

Every Ethereum node is like a tiny brain in a big robot. Together, they make Ethereum a global, unstoppable, tamper-proof machine.

You’ve heard of the cloud? Ethereum is the thunderstorm. ⚡

🧠 EOAs vs. Contracts — Who Runs the Show?

You (and MetaMask) are using an Externally Owned Account (EOA):

  • Has a private key

  • Can send transactions

  • Can own and control smart contracts

But the smart contracts themselves? They’re contract accounts:

  • No private key

  • Can receive ETH

  • React only when triggered

You can think of EOAs as players and contracts as automated chessboards that move when touched.

💧 Your First Contract: The Testnet Faucet

Let’s make it rain (test ETH)!

Here’s a super simple (but very insecure) smart contract:

function withdraw(uint amount) public {
  require(amount <= 0.1 ether);
  msg.sender.transfer(amount);
}

Enter fullscreen mode Exit fullscreen mode

This lets anyone request up to 0.1 ether. It’s like asking a magical bank to give you some coins—if the rules allow.

Step-by-step:

  1. Paste this into Remix IDE

  2. Compile it with the Solidity compiler

  3. Deploy it with MetaMask on the Ropsten testnet

  4. Send some ETH to the contract

  5. Call withdraw(100000000000000000) and voilà! ETH sent!

Congratulations—you just made money move with code.

🧱 What You Really Did

  • Created a wallet
  • Funded it with test ETH
  • Wrote a contract
  • Deployed it on the testnet
  • Interacted with Ethereum like a dev

🚀 Final Thoughts

“You didn’t just install a wallet. You just shook hands with the future of the internet.”

Ethereum lets you go beyond holding coins—it lets you build logic, automation, and applications around value itself.

Welcome to Web3. This is just the beginning.

Top comments (0)