In order to run the code, you need to have a (Free) account created at https://infura.io/ Once you have an account:
- Create New Project;
- Under "Product" select "Ethereum"
- Enter any "Project Name"
- Copy the Endpoint URL that looks like this https://mainnet.infura.io/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Create a .env file and store INFURA_URL = "https://mainnet.infura.io/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" and save the file
pip3 install -r requirements.txt
export FLASK_APP=app
export FLASK_ENV=development
flask run
Video Tutorial: https://www.youtube.com/watch?v=XcHNWuMietY