Skip to content

Lab: Smart Contract Self Managing Funds

In this lab you are going learn how a Smart Contract manages its own funds. You will send Ether to your Smart Contract. Then the Smart Contract will manage its own Ether and will be able to relay it to anyone else. It's like a bank account with programming code attached to it.

This can also be used to escrow Ether into a Smart Contract. First we'll do a very simple deposit/withdrawal example, then I'll show you how a Smart Contract can lock funds using a time-activated withdrawal functionality.

What You Know At The End Of The Lab

✨ Understand Contract Addresses and the global msg-object

🏦 How Smart Contracts manage Funds

💸 How to Send/Withdraw Ether to and from Smart Contracts

Prerequisites - You need:

  1. Chrome or Firefox browser.

  2. An Internet connection

  3. About 30 Minutes of your precious time ⌛

Get Started

💪 💪 💪 Let's get started!


Last update: April 10, 2022