Chapter 11

Launching a Smart Contract on Ethereum

IN THIS CHAPTER

Bullet Explaining account types (externally owned versus contract accounts)

Bullet Introducing the key elements of a smart contract

Bullet Writing, compiling, and deploying your smart contract

Bullet Following and interacting with your smart contract after deployment

A smart contract is a software program, defined by a set of code and data, that lies dormant until triggered by an external transaction. When called, smart contracts automatically enforce and execute a series of deterministic rules. Overall, they provide the logical foundation on which decentralized applications (dApps) are built. Indeed, the myriad of DeFi implementations presented in Part 2, “Diving into the Burgeoning DeFi Space,” rely on smart contracts for back-end processes. This chapter walks you through how to deploy and subsequently interact with your first smart contract on Ethereum!

Remember To follow the hands-on portion of this chapter, you will need to have completed some key ...

Get DeFi For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.