web3.py based dapp
-
Deploy your contract on your preferred network(update
RPC_URL
accordingly) and get the contract address. -
Create
.env
file in the root directory with below parameters:
PRIVATE_KEY=
RPC_URL=
CONTRACT_ADDRESS=
- Install dependencies and run app:
pip install -r requirements.txt
python app.py # open http://localhost:8000