Skip to content

A blockchain system is quite complex, and it's difficult to cover every aspect of it in a single lab. To address this, we have developed a series of labs focusing on different aspects of this emerging technology. This lab is the first in the series, aiming to familiarize the Ethereum platform.

Notifications You must be signed in to change notification settings

Priyabug/Crypto-Infrastructure-Simulation-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦊 MetaMask Wallet Setup & Blockchain Interaction Lab

This repository documents the steps for setting up the MetaMask wallet and interacting with a private Ethereum blockchain network using the SEED Labs Blockchain Emulator. The goal is to simulate account management, blockchain connection, and transaction execution in a controlled lab environment.


📌 Lab Overview

We demonstrate how to:

  • Install MetaMask browser extension
  • Connect MetaMask to a private Ethereum node
  • Import blockchain accounts using a recovery phrase
  • Send transactions between accounts
  • View transaction details using EtherView

🛠️ Task 1: Setting Up MetaMask Wallet

🔧 Task 1.a: Installing MetaMask Extension

  1. Open Firefox in the SEED Labs virtual machine.
  2. Go to Menu > Add-ons and themes.
  3. Search for MetaMask and install the extension by danfinlay.
  4. Screenshot required: MetaMask successfully installed.

🌐 Task 1.b: Connecting to the Blockchain

  1. Run the following command in the terminal to find Ethereum nodes:
    docker ps | grep Eth

👛 Task 1.c: Adding Accounts

  1. Log out or lock the current MetaMask account.

  2. Click "Forgot Password" and select the "Import using Secret Recovery Phrase" option.

  3. Use the following mnemonic phrase:

🐍 Task 2: Interacting with Blockchain Using Python

2.a. Installing Python Modules

Install required packages:

pip3 install web3==5.31.1 docker

2.b. Checking Account Balance

Use a Python script with web3 to query balances of Ethereum addresses.

2.c. Sending Transactions

Use Python to:

  • Construct transactions
  • Sign using private keys
  • Send transactions to the blockchain
  • Wait for confirmation and print the transaction receipt

⛓️ Task 3: Interacting with Blockchain Using Geth

3.a: Getting Balance

Use the Geth console to retrieve the balance of an Ethereum account.

3.b: Sending Transactions

Send Ether between accounts directly using the Geth JavaScript console.

3.c: Sending Transactions from a Different Account

Unlock the sender account and specify "from" and "to" fields explicitly to send a transaction.


🌐 Task 4: Adding a Full Node

  • Add a full node to the Ethereum network.
  • Connect it to existing nodes to sync the blockchain.
  • Configure peers and monitor the synchronization status.

✅ Summary

By completing this lab, you will:

  • Understand blockchain account and node interaction.
  • Gain practical skills using MetaMask, Python scripting (web3.py), and Geth.
  • Learn to deploy, interact, and manage Ethereum accounts and transactions.

About

A blockchain system is quite complex, and it's difficult to cover every aspect of it in a single lab. To address this, we have developed a series of labs focusing on different aspects of this emerging technology. This lab is the first in the series, aiming to familiarize the Ethereum platform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published