A simple web application built with React (using Vite) to validate a list of Ethereum wallet addresses.
This tool allows users to input multiple Ethereum addresses (either one per line or comma-separated) and validates each address based on standard Ethereum address formats. It provides clear visual feedback for valid and invalid addresses and offers a convenient way to copy only the valid ones.
- Multiple Address Input: Accepts addresses separated by newlines or commas.
- Address Validation:
- Must start with
0x. - Must be exactly 42 characters long.
- Must contain only hexadecimal characters (0–9, a–f, A–F) after
0x.
- Must start with
- Visual Feedback:
- Displays ✅
Validfor correctly formatted addresses. - Displays ❌
Invalidfor incorrectly formatted addresses, highlighting the invalid address text in red.
- Displays ✅
- Clear Input: A "Clear" button to easily reset the input field and results.
- Copy Valid Addresses:
- Provides a dedicated section to display only the valid addresses.
- Offers valid addresses formatted one per line and comma-separated for easy copying.
- Responsive UI: Centered layout for a clean user experience.
- Dummy Data: Pre-fills the input field with example addresses on load for quick testing.
- React: JavaScript library for building user interfaces.
- Vite: Next-generation frontend tooling for fast development.
- JavaScript (ES6+): Core programming language.
- HTML5: Standard markup language.
- CSS3: Styling the application.
- Node.js (which includes npm or yarn) installed on your system.
-
Clone the repository (if applicable, otherwise navigate to your project directory):
# git clone <your-repository-url> # cd <your-project-directory>
-
Install dependencies:
npm install # or # yarn install
-
Start the development server:
npm run dev # or # yarn dev
The application will typically be available at
http://localhost:5173(or another port if 5173 is in use).
- Open the application in your web browser.
- The input field will be pre-filled with example addresses. You can modify these or paste your own list of Ethereum addresses (one per line or comma-separated).
For example, you can try pasting the following list:
0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B notAnAddress 0x12345 0x742d35Cc6634C0532925a3b844Bc454e4438f44e - Click the "Validate Addresses" button.
- The results will be displayed below, indicating whether each address is valid or invalid.
- If there are valid addresses, a "Valid Addresses" section will appear, allowing you to copy them.
- Click the "Clear" button to reset the input and results.