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:
-
Chrome or Firefox browser.
-
An Internet connection
-
About 30 Minutes of your precious time ā
Get Started
šŖ šŖ šŖ Letās get started!