python-dapp icon indicating copy to clipboard operation
python-dapp copied to clipboard

web3.py based dapp

Python-Dapp

web3.py based dapp

Steps:

  1. Deploy your contract on your preferred network(update RPC_URL accordingly) and get the contract address.

  2. Create .env file in the root directory with below parameters:

PRIVATE_KEY=
RPC_URL=
CONTRACT_ADDRESS=
  1. Install dependencies and run app:
pip install -r requirements.txt

python app.py # open http://localhost:8000