Build an Ethereum Smart Contract with Go and Solidity

Build an Ethereum Smart Contract with Go and Solidity

1h 43mIntermediate2024-03-18

Authors

Xiao Liu

Xiao Liu

Course details

In an increasingly decentralized world, knowing how to develop smart contracts can be a big advantage—but there are some unique characteristics that can be tricky even for experienced developers. This course is designed to provide Go developers with an introduction on how to build and deploy smart contracts on Ethereum. Instructor Xiao Liu starts the basic theories about Ethereum, smart contracts, and their use cases. He then gets into a project-led tutorial on how to build a smart contract using Solidity and deploy and interact with it using Go. After the course, you should feel confident to deploy a smart contract to Ethereum with a good understanding of the basic building blocks.

Skills covered

Web3GoCryptocurrencyFinance and AccountingGoogleProgramming LanguagesData ScienceSoftware DevelopmentOne-Off

Concepts

Introduction

  • Learn to develop smart contracts with Go
  • What you should know

Theory and Concepts

  • An Ethereum synopsis
  • What is a smart contract on Ethereum
  • Smart contract use cases

Set Up a Smart Contract Development Environment

  • Install Solidity
  • Install Foundry
  • Install Geth

Solidity 101

  • Hello World
  • Primitive types
  • Flow control statements
  • Functions
  • Expressions
  • Constructor

Your Simple Auction Contract

  • How auctions work
  • Define the interface
  • Set the variables
  • Define the constructor
  • Implement Bid() function
  • Finish implementation
  • Create an NFT contract with OpenZeppelin

Build an API for Your Auction Contract

  • Go bindings generation
  • Service skeleton
  • Routes and handlers

Deploy a Smart Contract

  • Deploy to local Blockchain
  • Deploy to Ethereum Testnet and Mainnet
  • The grand finale - Let's start the auction

Conclusion

  • Next steps
40,000 Toman