A simple web service to view a wallet balance on the Base blockchain using Python and Flask.
- View the current balance of a wallet on Base.
- Validate the entered wallet address.
- Simple and intuitive web page.
- Python
- Flask
- Web3.py
- HTML/CSS
-
Clone the repository:
git clone https://github.com/yourusername/base-wallet-balance.git cd base-wallet-balance
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
Create a
.env
file in the root of the project and add:SECRET_KEY=your_secret_key_here BASE_RPC_URL=https://base-mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID
-
Run the application:
python run.py
-
Open your browser:
Go to http://127.0.0.1:5000
This project is licensed under the MIT License.