Create a Simple Bank Smart Contract Using Solidity

Create a Simple Bank Smart Contract Using Solidity

Brownie is a framework commonly used for developing and testing smart contracts for the Ethereum virtual machine. It supports both Solidity and Vyper as smart contract languages, but we’ll use Solidity in this project.

Brownie is relatively simpler for people who prefer Python over Truffle or Hardhat, which are both JavaScript-based frameworks.

In the first part of the project, we’ll create a smart contract that provides basic services provided by a bank. These services include depositing, withdrawing, and transferring funds to another account, as well as viewing an account’s transaction history.

Next, we’ll deploy the contract on a local blockchain using Ganache.

Lastly, we’ll look into different ways of interacting with our smart contract. We’ll also look into the differences between scripts that are run using Brownie and Python.