Summary
In this chapter, we learned how to write Python scripts to interact with smart contracts using the web3.py
library. First, we installed the library. Then, we installed Ganache and Geth, the development blockchains. After, we wrote a Python script to deploy a smart contract that’s written in Vyper. Next, we learned how to interact with smart contracts, from executing the function to read the state variable, executing the function to change the state variable, and executing the function to send ETH to the smart contract to querying event logs.
In the next chapter, we’ll learn how to use a blockchain development framework to develop smart contracts and interact with them.