python-dapp
python-dapp copied to clipboard
web3.py based dapp
Python-Dapp
web3.py based dapp
Steps:
-
Deploy your contract on your preferred network(update
RPC_URLaccordingly) and get the contract address. -
Create
.envfile 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